Filter hook 'user_profile_picture_description'

in WP Core File wp-admin/user-edit.php at line 649

View Source

user_profile_picture_description

Filter Hook
Description
Filters the user profile picture description displayed under the Gravatar.

Hook Information

File Location wp-admin/user-edit.php View on GitHub
Hook Type Filter
Line Number 649

Hook Parameters

Type Name Description
string $description The description that will be printed.
WP_User $profile_user The current WP_User object.

Usage Examples

Basic Usage
<?php
// Hook into user_profile_picture_description
add_filter('user_profile_picture_description', 'my_custom_filter', 10, 2);

function my_custom_filter($description, $profile_user) {
    // Your custom filtering logic here
    return $description;
}

Source Code Context

wp-admin/user-edit.php:649 - How this hook is used in WordPress core
<?php
 644  									 * @since 4.7.0 Added the `$profile_user` parameter.
 645  									 *
 646  									 * @param string  $description  The description that will be printed.
 647  									 * @param WP_User $profile_user The current WP_User object.
 648  									 */
 649  									echo apply_filters( 'user_profile_picture_description', $description, $profile_user );
 650  									?>
 651  								</p>
 652  							</td>
 653  						</tr>
 654  					<?php endif; ?>

PHP Documentation

<?php
/**
									 * Filters the user profile picture description displayed under the Gravatar.
									 *
									 * @since 4.4.0
									 * @since 4.7.0 Added the `$profile_user` parameter.
									 *
									 * @param string  $description  The description that will be printed.
									 * @param WP_User $profile_user The current WP_User object.
									 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-admin/user-edit.php
Related Hooks

Related hooks will be displayed here in future updates.