Rearrange Product Description and Related Products Tabs After 2.0 Upgrade
-
I would like my Product Description Tab to be the default tab on the Product Page. Before upgrading to 2.0 I was able to accomplish this by adding this simple hook to functions.php
remove_action( 'woocommerce_product_tabs', 'yiw_related_products_tab', 1 ); remove_action( 'woocommerce_product_tabs', 'woocommerce_product_description_tab', 10 ); remove_action( 'woocommerce_product_tabs', 'woocommerce_product_attributes_tab', 20 ); remove_action( 'woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30 ); add_action( 'woocommerce_product_tabs', 'woocommerce_product_description_tab', 10 ); add_action( 'woocommerce_product_tabs', 'yiw_related_products_tab', 15 ); add_action( 'woocommerce_product_tabs', 'woocommerce_product_attributes_tab', 20 ); add_action( 'woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30 );
Now actions no longer work and I need to apply a filter to achieve this. I am a complete novice with no knowledge of how to create a filter. I’ve read various posts here on the forum trying to accomplish my goal but I have not had any luck.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Rearrange Product Description and Related Products Tabs After 2.0 Upgrade’ is closed to new replies.