pre_user_nicename WordPress Filter Hook
The pre_user_nicename WordPress hook is triggered before the user's nicename is generated. It can be used to modify the user's nicename before it is stored in the database.
apply_filters( 'pre_user_nicename', string $user_nicename ) #
Filters a user’s nicename before the user is created or updated.
Parameters
- $user_nicename
(string)The user's nicename.
Source
File: wp-includes/user.php
Changelog
Version | Description |
---|---|
2.0.3 | Introduced. |