Remove Email-Button - by Royalty - on WordPress WooCommerce support

Solved3 replies2 participantsUpdated by Rose Tyler

  • Avatar: Royalty
    Royalty
    Participant

    Hello,
    I removed the “Email to a friend”-Button on single product page by adding this code to my childtheme’s functions.php:
    remove_action( 'woocommerce_single_product_summary', 'et_email_btn', 36 );
    After updating to Royal 6.0.0 or 6.0.1., the email buttons shows up again, although the action code is the same.
    Could you please tell me how to remove this button again?
    Many thanks in advance!

    3 Answers

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Hello,

    Please change the previous code to:

    add_action('wp', 'et_template_hooks_custom', 30);
    function et_template_hooks_custom() {
    	remove_action( 'woocommerce_single_product_summary', 'et_email_btn', 36 );
    }

    Regards

    Avatar: Royalty
    Royalty
    Participant

    Perfect, thank you!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    You’re welcome!

    Regards

The issue related to '‘Remove Email-Button’' has been successfully resolved, and the topic is now closed for further responses