pre_user_description хук-фильтрWP 2.0.3

Filters a user's description before the user is created or updated.

Использование

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(строка)
The user's description.

Список изменений

С версии 2.0.3 Введена.

Где вызывается хук

wp_insert_user()
pre_user_description
wp-includes/user.php 2276
$meta['description'] = apply_filters( 'pre_user_description', $description );

Где используется хук в WordPress

wp-includes/default-filters.php 39
add_filter( $filter, 'wp_filter_kses' );