Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all articles
Browse latest Browse all 102102

WeddingAlbumCafe on "[Plugin: WooCommerce - excelling eCommerce] Rearrange Product Description and Related Products Tabs After 2.0 Upgrade"

$
0
0

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.

http://wordpress.org/extend/plugins/woocommerce/


Viewing all articles
Browse latest Browse all 102102

Trending Articles