Last active
October 1, 2025 09:41
-
-
Save plugin-republic/4ad66a4345f5d96e47f37734872e483f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Hook: woocommerce_before_single_product. | |
| * | |
| * @hooked woocommerce_output_all_notices - 10 | |
| * add_action( 'woocommerce_before_single_product', 'woocommerce_output_all_notices', 10 ); | |
| */ | |
| do_action( 'woocommerce_before_single_product' ); | |
| ?> | |
| <div id="product-<?php the_ID(); ?>" <?php wc_product_class( '', $product ); ?>> | |
| <?php | |
| /** | |
| * Hook: woocommerce_before_single_product_summary. | |
| * | |
| * @hooked woocommerce_show_product_sale_flash - 10 | |
| * add_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_sale_flash', 10 ); | |
| * @hooked woocommerce_show_product_images - 20 | |
| * add_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 ); | |
| */ | |
| do_action( 'woocommerce_before_single_product_summary' ); | |
| ?> | |
| <div class="summary entry-summary"> | |
| <?php | |
| /** | |
| * Hook: woocommerce_single_product_summary. | |
| * | |
| * @hooked woocommerce_template_single_title - 5 | |
| * add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 ); | |
| * @hooked woocommerce_template_single_rating - 10 | |
| * add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10 ); | |
| * @hooked woocommerce_template_single_price - 10 | |
| * add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 ); | |
| * @hooked woocommerce_template_single_excerpt - 20 | |
| * add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 ); | |
| * @hooked woocommerce_template_single_add_to_cart - 30 | |
| * add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 ); | |
| * @hooked woocommerce_template_single_meta - 40 | |
| * @hooked woocommerce_template_single_sharing - 50 | |
| * add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_sharing', 50 ); | |
| * @hooked WC_Structured_Data::generate_product_data() - 60 | |
| */ | |
| do_action( 'woocommerce_single_product_summary' ); | |
| ?> | |
| </div> | |
| <?php | |
| /** | |
| * Hook: woocommerce_after_single_product_summary. | |
| * | |
| * @hooked woocommerce_output_product_data_tabs - 10 | |
| * add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 ); | |
| * @hooked woocommerce_upsell_display - 15 | |
| * add_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15 ); | |
| * @hooked woocommerce_output_related_products - 20 | |
| * add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 ); | |
| */ | |
| do_action( 'woocommerce_after_single_product_summary' ); | |
| ?> | |
| </div> | |
| <?php do_action( 'woocommerce_after_single_product' ); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment