diff --git a/changelog.txt b/changelog.txt index 8cd95855..53c91612 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,6 +6,7 @@ - Added: Extra condition for checking the license activation requests. - Added: 2nd `$args` attribute to the action hook 'um_cover_area_content'. + - Added: `$args` and `$user_id` attributes to the action hook 'um_after_profile_header_name'. - Added: Class `um-profile-subnav-{$subnav_id}-link` to the sub navigation links in the User Profile page. - Tweak: Updated `Extensions_Updater` class to use Action Scheduler in the upgrade process of the UM extensions. diff --git a/includes/core/um-actions-profile.php b/includes/core/um-actions-profile.php index a63e850e..09293f57 100644 --- a/includes/core/um-actions-profile.php +++ b/includes/core/um-actions-profile.php @@ -1230,24 +1230,24 @@ function um_profile_header( $args ) { */ do_action( 'um_after_profile_header_name_args', $args, um_user( 'ID' ) ); /** - * UM hook + * Fires after profile name in the header of the User Profile. * - * @type action - * @title um_after_profile_name_inline - * @description Insert after profile name some content - * @change_log - * ["Since: 2.0"] - * @usage add_action( 'um_after_profile_name_inline', 'function_name', 10 ); - * @example - * Display any custom content after profile name in the header of the User Profile. + * function my_after_profile_header_name( $args, $user_id ) { * // your code here * } - * ?> + * add_action( 'um_after_profile_header_name', 'my_after_profile_header_name', 10, 2 ); */ - do_action( 'um_after_profile_header_name' ); ?> - + do_action( 'um_after_profile_header_name', $args, um_user( 'ID' ) ); + ?> diff --git a/readme.txt b/readme.txt index eae10d55..599aa575 100644 --- a/readme.txt +++ b/readme.txt @@ -173,6 +173,7 @@ IMPORTANT: PLEASE UPDATE THE PLUGIN TO AT LEAST VERSION 2.6.7 IMMEDIATELY. VERSI * Added: Extra condition for checking the license activation requests. * Added: 2nd `$args` attribute to the action hook 'um_cover_area_content'. +* Added: `$args` and `$user_id` attributes to the action hook 'um_after_profile_header_name'. * Added: Class `um-profile-subnav-{$subnav_id}-link` to the sub navigation links in the User Profile page. * Tweak: Updated `Extensions_Updater` class to use Action Scheduler in the upgrade process of the UM extensions.