Created
September 13, 2019 15:28
-
-
Save ethiel88/6277bd91d0317c7b4e10b8ec9cffa6b0 to your computer and use it in GitHub Desktop.
Ultimate Member - Remove tabs on profile page
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 | |
add_filter('um_profile_tabs', 'pages_tab', 1000 ); | |
function pages_tab( $tabs ) { | |
unset($tabs['posts']); | |
unset($tabs['comments']); | |
return $tabs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment