Created
May 23, 2020 10:31
-
-
Save Oscar-Abad-Folgueira/1fb59dc94ef8004734985d49b6627f4e to your computer and use it in GitHub Desktop.
WooCoomerce Snippet - Quitar una pestaña de ajustes de WooCommerce (Integración)
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 WooCoomerce Snippet - Quitar una pestaña de ajustes de WooCommerce (Integración). | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/eliminar-pestanas-en-los-ajustes-de-woocommerce | |
*/ | |
add_filter( 'woocommerce_settings_tabs_array', 'ocultar_petanas_ajustes_woocommerce', 200, 1 ); | |
function ocultar_petanas_ajustes_woocommerce( $tabs_array ) { | |
unset( $tabs_array['integration'] ); | |
return $tabs_array; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment