There is a WooCommerce hook in single product page template, which execute 7 functions that displays title, rating, price, buttons, descriptions, etc…:
<?php
/**
* woocommerce_single_product_summary hook.
*
* @hooked woocommerce_template_single_title - 5
* @hooked woocommerce_template_single_rating - 10
* @hooked woocommerce_template_single_price - 10
* @hooked woocommerce_template_single_excerpt - 20
* @hooked woocommerce_template_single_add_to_cart - 30
* @hooked woocommerce_template_single_meta - 40
* @hooked woocommerce_template_single_sharing - 50
*/
do_action( 'woocommerce_single_product_summary' );
?>
How can I use woocommerce_template_single_title
to display product title at the top of my page?
Then I would like to use woocommerce_template_single_title
to display this title in the sidebar woocommerce template and for example in the middle of the page.
I am customizing my WooCommerce theme and I need to change some WooCommerce hooks behaviors.
Is there a WordPress function that filters or limits a WooCommerce hooks behaviors?
Thank you
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire