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
This commit is contained in:
Sergey Biryukov 2016-04-21 12:00:44 +00:00
parent d5e795ca9e
commit 80601ba5f7
1 changed files with 2 additions and 1 deletions

View File

@ -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. * Notifications are sent both to the site admin and to the newly created user.
* *
* @since 4.4.0 * @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 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 * @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' ) { function wp_send_new_user_notifications( $user_id, $notify = 'both' ) {
wp_new_user_notification( $user_id, null, $notify ); wp_new_user_notification( $user_id, null, $notify );