Title: Cannot use plugin get error
Last modified: August 30, 2020

---

# Cannot use plugin get error

 *  Resolved [Anonymous](https://wordpress.org/support/users/lookya23/)
 * (@lookya23)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cannot-use-plugin-get-error/)
 * Hi,
 * i try to use your plugin but i canot i get one error, see the screenshot here:
   [https://ibb.co/1s0wpkm](https://ibb.co/1s0wpkm)
 * How i can fix it ?
 * Thanks for your support.
 * Best regards.
    -  This topic was modified 5 years, 9 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
      Reason: removed bogus url

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Anonymous](https://wordpress.org/support/users/lookya23/)
 * (@lookya23)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cannot-use-plugin-get-error/#post-13332940)
 * 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 5 years, 9 months ago by [Yui](https://wordpress.org/support/users/fierevere/).
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cannot-use-plugin-get-error/#post-13336059)
 * [@lookya23](https://wordpress.org/support/users/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](https://make.wordpress.org/chat/)
 * When you contact the #forums channel, inform them what your WordPress.ORG 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](https://wordpress.org/support/users/lookya23/)
 * (@lookya23)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cannot-use-plugin-get-error/#post-13341121)
 * [@sterndata](https://wordpress.org/support/users/sterndata/) it’s for leave one
   url in code i forget … for privacy, but with you advice, it’s fix thank you !
 * [@support](https://wordpress.org/support/users/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 5 years, 9 months ago by [Anonymous](https://wordpress.org/support/users/lookya23/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cannot use plugin get error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/my-custom-functions_0e1030.svg)
 * [My Custom Functions](https://wordpress.org/plugins/my-custom-functions/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-custom-functions/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-custom-functions/)
 * [Active Topics](https://wordpress.org/support/plugin/my-custom-functions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-custom-functions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-custom-functions/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Anonymous](https://wordpress.org/support/users/lookya23/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/cannot-use-plugin-get-error/#post-13341121)
 * Status: resolved