[wp-trac] [WordPress Trac] #61944: Wrong argument type in documentation for hook new_user_email_content

WordPress Trac noreply at wordpress.org
Wed Aug 28 06:46:02 UTC 2024


#61944: Wrong argument type in documentation for hook new_user_email_content
-------------------------------+------------------------------
 Reporter:  roytanck           |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Users              |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  docs
-------------------------------+------------------------------
Changes (by mukesh27):

 * keywords:   => reporter-feedback


Comment:

 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


 {{{
 /**
  * Filters the text of the email sent when a change of user email address
 is attempted.
  *
  * The following strings have a special meaning and will get replaced
 dynamically:
  * - ###USERNAME###  The current user's username.
  * - ###ADMIN_URL### The link to click on to confirm the email change.
  * - ###EMAIL###     The new email.
  * - ###SITENAME###  The name of the site.
  * - ###SITEURL###   The URL to the site.
  *
  * @since MU (3.0.0)
  * @since 4.9.0 This filter is no longer Multisite specific.
  *
  * @param string $email_text     Text in the email.
  * @param array  $new_user_email {
  *     Data relating to the new user email address.
  *
  *     @type string $hash     The secure hash used in the confirmation
 link URL.
  *     @type string $newemail The proposed new email address.
  * }
  */
 $content = apply_filters( 'new_user_email_content', $email_text,
 $new_user_email );
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61944#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list