wp_send_new_user_notifications
函数
wp_send_new_user_notifications ( $user_id, $notify = 'both' )
- 参数
-
-
(int)
$user_id
ID of the newly created user.- Required: 是
-
(string)
$notify
Optional. Type of notification that should happen. Accepts ‘admin’ or an empty string (admin only), ‘user’, or ‘both’ (admin and user). Default ‘both’.- Required: 否
- Default: ‘both’
-
(int)
- 定义位置
-
-
wp-includes/user.php
, line 3438
-
wp-includes/user.php
- 引入
- 4.4.0
- 弃用
- –
Initiates email notifications related to the creation of new users.
Notifications are sent both to the site admin and to the newly created user.
function wp_send_new_user_notifications( $user_id, $notify = 'both' ) { wp_new_user_notification( $user_id, null, $notify ); }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。