Created
January 18, 2023 16:13
-
-
Save jjmontalban/ce7c01aa90f86248cb9cb25aa5976ce8 to your computer and use it in GitHub Desktop.
Elimina metaboxes de Woocommerce
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 metaboxes | |
function remove_metaboxes() { | |
//remove_meta_box( 'postexcerpt' , 'product' , 'normal' ); Descripcion corta | |
remove_meta_box( 'tagsdiv-product_tag' , 'product' , 'side' ); //tags | |
//remove_meta_box( 'yoast_internal_linking' , 'product' , 'side' ); //tags | |
} | |
add_action( 'add_meta_boxes' , 'remove_metaboxes', 50 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment