结果是woocommerce_get_template()
已弃用,替换为wc_get_template()
. 我通过将此添加到functions.php
.
add_action( \'woocommerce_after_single_product_summary\', \'removing_product_tabs\', 2 );
function removing_product_tabs(){
remove_action(\'woocommerce_after_single_product_summary\',\'woocommerce_output_product_data_tabs\', 10 );
add_action(\'woocommerce_after_single_product_summary\',\'get_product_tab_templates_displayed\', 10 );
}
function get_product_tab_templates_displayed() {
wc_get_template( \'single-product/tabs/description.php\' );
wc_get_template( \'single-product/tabs/additional-information.php\' );
comments_template();
}