#61944 closed defect (bug) (invalid)
Wrong argument type in documentation for hook new_user_email_content
Reported by: | roytanck | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Users | Keywords: | reporter-feedback |
Focuses: | docs | Cc: |
Description
In wp-includes/user.php, the docs for the new_user_email_content
hook specify that both arguments are of type string
. The second argument, new_user_email
is actually an array, containing the new address as well as a hash. It is declared on line 3726 in the same file.
https://core.trac.wordpress.org/browser/tags/6.6/src/wp-includes/user.php#L3774
Change History (3)
Note: See
TracTickets for help on using
tickets.
Hi there!
The
new_user_email_content
shows second args array. See https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/user.php#L3761-L3782