pre_user_url

pre_user_url

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('pre_user_url') is found 1 times:

  • /wp-includes/user.php line 2267
    	 * @since 2.0.3
    	 *
    	 * @param string $raw_user_url The user's URL.
    	 */
    	$user_url = apply_filters( 'pre_user_url', $raw_user_url );
    
    	if ( mb_strlen( $user_url ) > 100 ) {
    		return new WP_Error( 'user_url_too_long', __( 'User URL may not be longer than 100 characters.' ) );
    	}
    
    	$user_registered = empty( $userdata['user_registered'] ) ? gmdate( 'Y-m-d H:i:s' ) : $userdata['user_registered'];