Created
January 18, 2023 12:10
-
-
Save jjmontalban/467567b59662655efab4c6076977d4ad to your computer and use it in GitHub Desktop.
Oculta secciones de Mi Cuenta de Woo
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
/** | |
* @snippet oculta secciones de mi-cuenta de woocommerce | |
* @author JJMontalban | |
*/ | |
add_filter( 'woocommerce_account_menu_items', 'hideSectionProfile', 999 ); | |
function hideSectionProfile( $items ) { | |
unset($items['downloads']); | |
unset($items['dashboard']); | |
return $items; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment