diff --git a/includes/core/class-profile.php b/includes/core/class-profile.php index 414230e3..ac5b6522 100644 --- a/includes/core/class-profile.php +++ b/includes/core/class-profile.php @@ -249,7 +249,7 @@ if ( ! class_exists( 'um\core\Profile' ) ) { break; default: - $can_view = true; + $can_view = apply_filters( 'um_profile_menu_can_view_tab', true, $privacy, $tab, $tab_data, $target_id ); break; } diff --git a/readme.txt b/readme.txt index e509d4e6..fd825df6 100644 --- a/readme.txt +++ b/readme.txt @@ -160,7 +160,7 @@ The plugin works with popular caching plugins by automatically excluding Ultimat * Enhancements: - Added: Hook to unlock the ability to add new users through the registration form - Added: Filter hook 'um_change_usermeta_for_update' for extending `$to_update` usermeta array after all profile fields validations - - Added: Filter hook 'um_profile_tabs_privacy_list' for extending privacy options for Profile Tabs + - Added: Filter hook 'um_profile_tabs_privacy_list' and 'um_profile_menu_can_view_tab' for extending privacy options for Profile Tabs * Bugfixes: - Fixed: Temp directory size calculation