Files
roi-theme/wp-content/plugins/wp-marketing-automations/compatibilities/rest/class-bwfan-compatibility-with-clearfy.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

35 lines
851 B
PHP
Executable File

<?php
/**
* Clearfy Pro
* https://wpshop.ru/plugins/clearfy
*/
if ( ! class_exists( 'BWFAN_Compatibility_With_Clearfy' ) ) {
class BWFAN_Compatibility_With_Clearfy {
public function __construct() {
add_filter( 'clearfy_rest_api_white_list', array( $this, 'bwfan_whitelist_autonami_endpoints' ), 10, 1 );
}
/** white list autonami endpoints in clearfy pro plugin
*
* @param $white_list
*
* @return mixed
*/
public function bwfan_whitelist_autonami_endpoints( $white_list ) {
$white_list[] = 'woofunnels';
$white_list[] = 'woofunnels-admin';
$white_list[] = BWFAN_API_NAMESPACE;
$white_list[] = 'autonami-webhook';
$white_list[] = 'woofunnels-analytics';
$white_list[] = 'autonami';
$white_list[] = 'funnelkit-automations';
return $white_list;
}
}
new BWFAN_Compatibility_With_Clearfy();
}