v 3.6.9 released
This commit is contained in:
parent
d0f6753f36
commit
f927600b6d
|
@ -4669,19 +4669,21 @@ function mep_change_global_option_section($option_name, $old_sec_name, $new_sec_
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
add_action( 'pre_get_posts', 'mep_search_query_exlude_hidden_wc_fix' );
|
add_action( 'pre_get_posts', 'mep_search_query_exlude_hidden_wc_fix' );
|
||||||
function mep_search_query_exlude_hidden_wc_fix( $query = false ) {
|
function mep_search_query_exlude_hidden_wc_fix( $query ) {
|
||||||
if(!is_admin() && is_search()){
|
if ($query->is_search && !is_admin() ) {
|
||||||
$query->set( 'tax_query', array(
|
$query -> set( 'tax_query', array(
|
||||||
array(
|
array(
|
||||||
'taxonomy' => 'product_visibility',
|
'taxonomy' => 'product_visibility',
|
||||||
'field' => 'name',
|
'field' => 'name',
|
||||||
'terms' => 'exclude-from-search',
|
'terms' => 'exclude-from-search',
|
||||||
'operator' => 'NOT IN',
|
'operator' => 'NOT IN',
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function mep_check_plugin_installed($path){
|
function mep_check_plugin_installed($path){
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Plugin Name: Event Manager and Tickets Selling Plugin for WooCommerce
|
* Plugin Name: Event Manager and Tickets Selling Plugin for WooCommerce
|
||||||
* Plugin URI: http://mage-people.com
|
* Plugin URI: http://mage-people.com
|
||||||
* Description: A Complete Event Solution for WordPress by MagePeople..
|
* Description: A Complete Event Solution for WordPress by MagePeople..
|
||||||
* Version: 3.6.8
|
* Version: 3.6.9
|
||||||
* Author: MagePeople Team
|
* Author: MagePeople Team
|
||||||
* Author URI: http://www.mage-people.com/
|
* Author URI: http://www.mage-people.com/
|
||||||
* Text Domain: mage-eventpress
|
* Text Domain: mage-eventpress
|
||||||
|
|
Loading…
Reference in New Issue