Created
October 14, 2020 14:27
-
-
Save mahfelwp/85b2217094c03817d3fe23b1cd3504f1 to your computer and use it in GitHub Desktop.
Delete widgets settings page and link from user dashboard
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('yz_get_profile_hidden_widgets','hide_widgets_from_user_profile_edit_section'); | |
function hide_widgets_from_user_profile_edit_section( $widget ) { | |
$widget[] = 'portfolio'; | |
return $widget; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment