• Resolved mrpress01

    (@mrpress01)


    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

    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

    (@mrpress01)

    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

    (@mrpress01)

    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.