Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_send_new_user_notifications ›

Da4.4.0
Deprecaton/a
wp_send_new_user_notifications ( $user_id, $notify = 'both' )
Parametri: (2)
  • (int) $user_id ID of the newly created user.
    Richiesto:
  • (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'.
    Richiesto: No
    Default: 'both'
Definito a:
Codex:
ChangeLog:
  • 4.6.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.



Sorgenti

function wp_send_new_user_notifications( $user_id, $notify = 'both' ) {
	wp_new_user_notification( $user_id, null, $notify );
}