diff --git a/includes/core/class-profile.php b/includes/core/class-profile.php index 85830f79..414230e3 100644 --- a/includes/core/class-profile.php +++ b/includes/core/class-profile.php @@ -96,14 +96,14 @@ if ( ! class_exists( 'um\core\Profile' ) ) { * @return array */ function tabs_privacy() { - $privacy = array( + $privacy = apply_filters( 'um_profile_tabs_privacy_list', array( 0 => __( 'Anyone', 'ultimate-member' ), 1 => __( 'Guests only', 'ultimate-member' ), 2 => __( 'Members only', 'ultimate-member' ), 3 => __( 'Only the owner', 'ultimate-member' ), 4 => __( 'Only specific roles', 'ultimate-member' ), 5 => __( 'Owner and specific roles', 'ultimate-member' ), - ); + ) ); return $privacy; } diff --git a/readme.txt b/readme.txt index a2e820d7..e509d4e6 100644 --- a/readme.txt +++ b/readme.txt @@ -160,6 +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 * Bugfixes: - Fixed: Temp directory size calculation