This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function my_remove_default_et_pb_custom_search() { | |
remove_action( 'pre_get_posts', 'et_pb_custom_search' ); | |
add_action( 'pre_get_posts', 'my_et_pb_custom_search' ); | |
} | |
add_action( 'wp_loaded', 'my_remove_default_et_pb_custom_search' ); | |
function my_et_pb_custom_search( $query = false ) { | |
if ( is_admin() || ! is_a( $query, 'WP_Query' ) || ! $query->is_search ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Your Functionality MU-Plugin Name | |
* Plugin URI: http://example.com/plugin-name-uri/ | |
* Description: This is a short description of what the plugin does. It's displayed in the WordPress admin area. | |
* Version: 1.0.0 | |
* Author: Your Name or Your Company | |
* Author URI: http://example.com/ | |
* License: GPL-2.0+ | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
OlderNewer