user_profile_picture_description
Filters the user profile picture description displayed under the Gravatar.
Usage
add_filter( 'user_profile_picture_description', 'wp_kama_user_profile_picture_description_filter', 10, 2 ); /** * Function for `user_profile_picture_description` filter-hook. * * @param string $description The description that will be printed. * @param WP_User $profile_user The current WP_User object. * * @return string */ function wp_kama_user_profile_picture_description_filter( $description, $profile_user ){ // filter... return $description; }
- $description(string)
- The description that will be printed.
- $profile_user(WP_User)
- The current WP_User object.
Changelog
Since 4.4.0 | Introduced. |
Since 4.7.0 | Added the $profile_user parameter. |
Where the hook is called
In file: /wp-admin/user-edit.php
user_profile_picture_description
wp-admin/user-edit.php 647
echo apply_filters( 'user_profile_picture_description', $description, $profile_user );