/** * Plugin Name: WaterExperts constumizations * Description: Includes speed optimization snippets, as long as the other site-specific functions. * Author: Yury Portnov * Author URL: https://portnov.agency * Version: 1.0.0 */ define( 'PLUGIN_DIR', dirname( __FILE__ ) ); require_once PLUGIN_DIR . '/actions/index.php'; require_once PLUGIN_DIR . '/assets/index.php'; require_once PLUGIN_DIR . '/shortcodes.php'; require_once PLUGIN_DIR . '/acf.php'; require_once PLUGIN_DIR . '/ajax.php'; require_once PLUGIN_DIR . '/post-types.php'; require_once PLUGIN_DIR . '/disable-comments.php'; /** Water Express specific protected area */ require_once PLUGIN_DIR . '/knowledge-center.php'; add_action( 'wp_enqueue_scripts', function() { wp_localize_script( 'legacy', 'bosaq_urls', array( 'ajax_url' => admin_url('admin-ajax.php'), ) ); }, 99 ); // remove cf-7 css add_action( 'wp_enqueue_scripts', function() { wp_dequeue_style( 'contact-form-7' ); }); add_post_type_support( 'page', 'excerpt' ); //Remove Gutenberg Block Library CSS from loading on the frontend function smartwp_remove_wp_block_library_css(){ if( !is_singular( 'post' ) ): wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style( 'wp-block-library-theme' ); wp_dequeue_style( 'wc-blocks-style' ); // Remove WooCommerce block CSS endif; } add_action( 'wp_enqueue_scripts', 'smartwp_remove_wp_block_library_css', 100 ); add_action('wp_loaded',function(){ if( function_exists('oxygen_vsb_register_condition') && function_exists('pll_languages_list') ) { $lang_list = pll_languages_list(); oxygen_vsb_register_condition( //Condition Name 'Locale', //Values array( 'options' => $lang_list, 'custom' => false ), //Operators array('==', '!='), //Callback Function 'polylang_callback', //Condition Category 'Polylang' ); function polylang_callback($value, $operator) { $my_lang = pll_current_language(); global $OxygenConditions; return $OxygenConditions->eval_string($my_lang, $value, $operator); } } }); add_action('wp_head',function(){ ?> }); add_action('wp_body_open',function(){ ?> }); add_action( 'wp_footer', function(){ echo '
'; });





For our General Terms and conditions click here.
Pour consulter nos conditions générales, cliquez ici.