W3cubDocs

/WordPress

apply_filters( ‘pre_user_first_name’, string $first_name )

Filters a user’s first name before the user is created or updated.

Parameters

$first_namestring
The user’s first name.

Source

$meta['first_name'] = apply_filters( 'pre_user_first_name', $first_name );

Changelog

Version Description
2.0.3 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_user_first_name