pre_user_description
Filters a user's description before the user is created or updated.
Usage
add_filter( 'pre_user_description', 'wp_kama_pre_user_description_filter' ); /** * Function for `pre_user_description` filter-hook. * * @param string $description The user's description. * * @return string */ function wp_kama_pre_user_description_filter( $description ){ // filter... return $description; }
- $description(string)
- The user's description.
Changelog
Since 2.0.3 | Introduced. |
Where the hook is called
pre_user_description
wp-includes/user.php 2346
$meta['description'] = apply_filters( 'pre_user_description', $description );
Where the hook is used in WordPress
wp-includes/default-filters.php 39
add_filter( $filter, 'wp_filter_kses' );