Last active
February 3, 2023 09:49
-
-
Save jjmontalban/82ef050128a9502ab2b2d6bbcda19abe to your computer and use it in GitHub Desktop.
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 | |
/* Ocultar Secciones en Mi Cuenta Woocommerce */ | |
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