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

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

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

add_filter( 'pre_user_email', 'wp_kama_pre_user_email_filter' );

/**
 * Function for `pre_user_email` filter-hook.
 * 
 * @param string $raw_user_email The user's email.
 *
 * @return string
 */
function wp_kama_pre_user_email_filter( $raw_user_email ){

	// filter...
	return $raw_user_email;
}
$raw_user_email(строка)
The user's email.

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

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

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

wp_insert_user()
pre_user_email
wp-includes/user.php 2166
$user_email = apply_filters( 'pre_user_email', $raw_user_email );

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

wp-includes/default-filters.php 52
add_filter( $filter, 'trim' );
wp-includes/default-filters.php 53
add_filter( $filter, 'sanitize_email' );
wp-includes/default-filters.php 54
add_filter( $filter, 'wp_filter_kses' );