Created
May 13, 2020 17:04
-
-
Save ibndawood/2be6716a0f18caa0b8e35bc4a09a0e45 to your computer and use it in GitHub Desktop.
MediaCenter - Single Product Hooks
This file contains 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
/** | |
* Single Product | |
*/ | |
add_filter( 'woocommerce_sale_flash', 'mc_sale_flash' ); | |
add_filter( 'woocommerce_single_product_carousel_options', 'mc_wc_single_product_carousel_option_remove_thumb' ); | |
remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 ); | |
add_action( 'woocommerce_before_single_product_summary', 'mc_product_summary_wrapper_start', 1 ); | |
add_action( 'woocommerce_after_single_product_summary', 'mc_product_summary_wrapper_end', 1 ); | |
add_action( 'woocommerce_before_single_product_summary', 'mc_product_images_wrapper_start', 2 ); | |
add_action( 'woocommerce_before_single_product_summary', 'mc_product_images_wrapper_end', PHP_INT_MAX ); | |
add_action( 'woocommerce_before_single_product_summary', 'mc_template_loop_product_labels', 15 ); | |
add_action( 'woocommerce_before_single_product_summary', 'mc_show_product_images', 20 ); | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 ); | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10 ); | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 ); | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 ); | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 ); | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_sharing', 50 ); | |
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 5 ); | |
add_action( 'woocommerce_single_product_summary', 'mc_template_single_title', 10 ); | |
add_action( 'woocommerce_single_product_summary', 'mc_single_product_action_buttons', 20 ); | |
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 30 ); | |
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 40 ); | |
add_action( 'woocommerce_single_product_summary', 'mc_template_single_add_to_cart', 50 ); | |
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 60 ); | |
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_sharing', 70 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment