pre_user_nicename filter-hookWP 2.0.3

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

Usage

add_filter( 'pre_user_nicename', 'wp_kama_pre_user_nicename_filter' );

/**
 * Function for `pre_user_nicename` filter-hook.
 * 
 * @param string $user_nicename The user's nicename.
 *
 * @return string
 */
function wp_kama_pre_user_nicename_filter( $user_nicename ){

	// filter...
	return $user_nicename;
}
$user_nicename(string)
The user's nicename.

Changelog

Since 2.0.3 Introduced.

Where the hook is called

wp_insert_user()
pre_user_nicename
wp-includes/user.php 2203
$user_nicename = apply_filters( 'pre_user_nicename', $user_nicename );

Where the hook is used in WordPress

Usage not found.