pre_user_last_name

pre_user_last_name

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('pre_user_last_name') is found 1 times:

  • /wp-includes/user.php line 2317
    	 * @since 2.0.3
    	 *
    	 * @param string $last_name The user's last name.
    	 */
    	$meta['last_name'] = apply_filters( 'pre_user_last_name', $last_name );
    
    	if ( empty( $userdata['display_name'] ) ) {
    		if ( $update ) {
    			$display_name = $user_login;
    		} elseif ( $meta['first_name'] && $meta['last_name'] ) {
    			$display_name = sprintf(