Created
January 18, 2023 16:10
-
-
Save jjmontalban/82d3cde4b930c3873858edd4b21d8352 to your computer and use it in GitHub Desktop.
Elimina meta boxes en la creacion de pagina de producto en Woo
This file contains hidden or 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
/** | |
* @author https://stackoverflow.com/questions/21672870/woocommerce-remove-meta-boxes | |
* @author https://wp-kama.com/plugin/woocommerce/hook/woocommerce_product_data_tabs | |
*/ | |
//Eliminar tabs de metabox DATOS DEL PRODUCTO | |
function remove_tab($tabs){ | |
//unset($tabs['general']); | |
//unset($tabs['inventory']); | |
unset($tabs['shipping']); | |
unset($tabs['linked_product']); | |
//unset($tabs['attribute']); | |
//unset($tabs['variations']); | |
unset($tabs['advanced']); | |
unset($tabs['yoast_tab']); | |
return($tabs); | |
} | |
add_filter('woocommerce_product_data_tabs', 'remove_tab', 10, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment