Created
May 9, 2020 18:11
-
-
Save Oscar-Abad-Folgueira/f7ed419b4aaab7d616d49d8dd9ea0581 to your computer and use it in GitHub Desktop.
Ordenar pestañas de producto de WooCommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @snippet Ordenar pestañas de producto de WooCommerce | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/woocommerce-snippet-ordenar-las-pestanas-en-la-pagina-de-producto/ | |
*/ | |
add_filter( 'woocommerce_product_tabs', 'oaf_wc_change_tabs_order', 20 ); | |
function oaf_wc_change_tabs_order( $tabs ) { | |
$tabs['reviews']['priority'] = 5; | |
$tabs['description']['priority'] = 10; | |
return $tabs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment