0
我正在尝试安排产品概要的顺序,以便价格在经过简短说明后发出股票通知之后发出。我知道的重点在内容单product.phpwoocommerce股票通知优先
/**
* 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
* @hooked WC_Structured_Data::generate_product_data() - 60
*/
do_action('woocommerce_single_product_summary');
限定。然而,我没有看到股票在大呼过瘾。该文件或代码,我不能找到它。如果我知道股票模板的钩子和优先级,我可以解决我的问题。我试过
remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_stock', 30);
没有结果。谁能帮忙?谢谢。