Title: remove function from woocommerce hook. Help
Last modified: June 13, 2018

---

# remove function from woocommerce hook. Help

 *  Resolved [mrpress01](https://wordpress.org/support/users/mrpress01/)
 * (@mrpress01)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/remove-function-from-woocommerce-hook-help/)
 * Hello, I would like to remove a function on this page of woocommerce (category)
   acting on his hook. But I do not know how to create the function
 * this is the function to remove
 *     ```
       do_action( 'woocommerce_no_products_found' );
       ```
   
 *     ```
       else {
   
       	/**
   
       	 * Hook: woocommerce_no_products_found.
   
       	 *
   
       	 * @hooked wc_no_products_found - 10
   
       	 */
   
       	do_action( 'woocommerce_no_products_found' );
   
       }
       ```
   
 * reference page
    [link](https://github.com/woocommerce/woocommerce/blob/release/3.4/templates/archive-product.php)
 * I would like to remove and replace it with a message that I want
 * Can someone help me?
    Thanks so much

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

 *  Thread Starter [mrpress01](https://wordpress.org/support/users/mrpress01/)
 * (@mrpress01)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/remove-function-from-woocommerce-hook-help/#post-10397162)
 * I tried to replace the template but changing this code also changes in the search
   results and I wanted to change it only in the product categories
 *  Thread Starter [mrpress01](https://wordpress.org/support/users/mrpress01/)
 * (@mrpress01)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/remove-function-from-woocommerce-hook-help/#post-10397386)
 * I solved using conditional tags
 * `if ( is_product_category()`

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

The topic ‘remove function from woocommerce hook. Help’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [hook](https://wordpress.org/support/topic-tag/hook/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 2 replies
 * 1 participant
 * Last reply from: [mrpress01](https://wordpress.org/support/users/mrpress01/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/remove-function-from-woocommerce-hook-help/#post-10397386)
 * Status: resolved