Is there a way to create own hook so I can get desired result
-
I am trying to do something like below
/*My hook*/
add_action( ‘woocommerce_after_add_to_cart_button’, ‘re_head’ );
function re_head() {
echo ‘<div id=”product-variations”>
Products here
</div>’;remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_title’, 5 );
remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_rating’, 10 );
};But it is not taking place; I want to remove default title and then want to register them back in my own function
- The topic ‘Is there a way to create own hook so I can get desired result’ is closed to new replies.