Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Anonymous

    (@lookya23)

    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.
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    @lookya23 I don’t understand your request when you reported the topic for moderator review.

    If you need to contact the moderators about this then you can do so via the Slack #forums channel.

    To use that channel you need a Slack account. You can obtain one via these instructions.

    Slack

    When you contact the #forums channel, inform them what your www.remarpro.com forum user ID is. That will help the moderators find your account and ascertain what the issue is.

    If you do use Slack do not direct message me or any other moderator. Use the #forums channel and any moderator there can assist you.

    Thread Starter Anonymous

    (@lookya23)

    @sterndata it’s for leave one url in code i forget … for privacy, but with you advice, it’s fix thank you !

    @support My Custom Functions :

    I have another plugin update and the error in google console leave and the problem is fix ! All works good !

    thank you for you great plugin.

    • This reply was modified 4 years, 6 months ago by Anonymous.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot use plugin get error’ is closed to new replies.