mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
https://stackoverflow.com/questions/78038670/show-woo-commerce-price-variation-before-product-short-description
5 lines
434 B
Text
5 lines
434 B
Text
// Remove the action from its original hook
|
|
remove_action( 'woocommerce_after_single_product_summary', array( 'Ni_wooCommerce_After_Single_Product_Summary', 'ni_woocommerce_after_single_product_summary' ) );
|
|
|
|
// Add the action to the desired hook with the specified priority
|
|
add_action( 'woocommerce_single_product_summary', array( 'Ni_wooCommerce_After_Single_Product_Summary', 'ni_woocommerce_after_single_product_summary' ), 55 );
|