pre_user_url filter-hookWP 2.0.3

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

Usage

add_filter( 'pre_user_url', 'wp_kama_pre_user_url_filter' );

/**
 * Function for `pre_user_url` filter-hook.
 * 
 * @param string $raw_user_url The user's URL.
 *
 * @return string
 */
function wp_kama_pre_user_url_filter( $raw_user_url ){

	// filter...
	return $raw_user_url;
}
$raw_user_url(string)
The user's URL.

Changelog

Since 2.0.3 Introduced.

Where the hook is called

wp_insert_user()
pre_user_url
wp-includes/user.php 2189
$user_url = apply_filters( 'pre_user_url', $raw_user_url );

Where the hook is used in WordPress

wp-includes/default-filters.php 74
add_filter( $filter, 'wp_strip_all_tags' );
wp-includes/default-filters.php 75
add_filter( $filter, 'esc_url_raw' );
wp-includes/default-filters.php 76
add_filter( $filter, 'wp_filter_kses' );