- 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>
22 lines
549 B
PHP
Executable File
22 lines
549 B
PHP
Executable File
<?php
|
||
|
||
/**
|
||
* Weglot Translate – Translate your WordPress website and go multilingual
|
||
* https://weglot.com/
|
||
*/
|
||
if ( ! class_exists( 'BWFAN_Compatibility_With_Weglot' ) ) {
|
||
class BWFAN_Compatibility_With_Weglot {
|
||
|
||
public function __construct() {
|
||
|
||
if ( false === strpos( $_SERVER['REQUEST_URI'], BWFAN_API_NAMESPACE . '/automation/' ) ) {
|
||
return;
|
||
}
|
||
/** Disable weglot translation on automation page */
|
||
add_filter( 'weglot_active_translation_before_process', '__return_false' );
|
||
}
|
||
}
|
||
|
||
new BWFAN_Compatibility_With_Weglot();
|
||
}
|