From 80601ba5f73a541055d70df034a567dd2f9285bb Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 21 Apr 2016 12:00:44 +0000 Subject: [PATCH] Docs: Reflect the new `'user'` option for `wp_new_user_notification()`'s `$notify` parameter added in [37276] in `wp_send_new_user_notifications()` docs as well. Props ocean90. Fixes #36009. git-svn-id: https://develop.svn.wordpress.org/trunk@37278 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/user.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php index 69cc86c0d6..2af846c7b4 100644 --- a/src/wp-includes/user.php +++ b/src/wp-includes/user.php @@ -2310,10 +2310,11 @@ function register_new_user( $user_login, $user_email ) { * Notifications are sent both to the site admin and to the newly created user. * * @since 4.4.0 + * @since 4.6.0 The `$notify` parameter accepts 'user' for sending notification only to the user created. * * @param int $user_id ID of the newly created user. * @param string $notify Optional. Type of notification that should happen. Accepts 'admin' or an empty string - * (admin only), or 'both' (admin and user). Default 'both'. + * (admin only), 'user', or 'both' (admin and user). Default 'both'. */ function wp_send_new_user_notifications( $user_id, $notify = 'both' ) { wp_new_user_notification( $user_id, null, $notify );