PS : i try to put this 2 codes :
function custom_pre_get_posts_query( $q ) {
$tax_query = (array) $q->get( 'tax_query' );
$tax_query[] = array(
'taxonomy' => 'product_cat',
'field' => 'slug',
'terms' => array( 'kawah-ijen' ), // Don't display products in the clothing category on the shop page.
'operator' => 'NOT IN'
);
$q->set( 'tax_query', $tax_query );
}
add_action( 'woocommerce_product_query', 'custom_pre_get_posts_query' );
and
add_action( 'woocommerce_product_query', 'custom_pre_get_posts_query' );
add_filter( 'wpcf7_support_html5_fallback', '__return_true' );
add_filter( 'avatar_defaults', 'new_default_avatar' );
function new_default_avatar ( $avatar_defaults ) {
//add URL to where your avatar image is located
$new_avatar_url = get_bloginfo( 'template_directory' ) . '/img/Gravatar.png';
//Add the name of the avatar. This will appear to the right of the avatar in
//your settings
$avatar_defaults[$new_avatar_url] = 'Default Gravatar';
return $avatar_defaults;
}
-
This reply was modified 4 years, 6 months ago by
Yui.