• Resolved Kishor Kumar

    (@cyberkishor)


    Hi,

    I used remove_action to modify few things on woocommerce page, product archive page and it’s working fine with older version after the update in latest version remove_action not working anymore. I tried all methods as I know but not get succeed so please guide me if anything changes on latest version.

    remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );

    also tried with init hooks like:

    
    add_action( 'init', 'prefix_remove_action' );
    function prefix_remove_action() {
     remove_action( 'woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10 );
        remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10 );
        remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
        remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title', 10 );
        remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 );
        remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );

    }
    `

    not any hooks are working.

    Thanks in advance for help.
    Regards,
    Kishor

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove action not working on latest version 6.1’ is closed to new replies.