Forked from AlphaBlossom/woocommerce-move-price.php
Created
October 18, 2016 11:05
-
-
Save davidperezgar/fabd32b0565011f373f1847f1dbb5ae1 to your computer and use it in GitHub Desktop.
Move WooCommerce Pricing on Single Product Page
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
/********************************** | |
* | |
* Move WooCommerce Price on Single Product Page | |
* | |
* @author AlphaBlossom / Tony Eppright | |
* @link http://www.alphablossom.com | |
* | |
* Reference hook locations using woocommerce_single_product_summary hook | |
* | |
* @hooked woocommerce_template_single_title – 5 | |
* @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 | |
* | |
************************************/ | |
// Move WooCommerce price | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 ); | |
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 25 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment