Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_send_new_user_notifications ›

Seit4.4.0
Veraltetn/v
wp_send_new_user_notifications ( $user_id, $notify = 'both' )
Parameter: (2)
  • (int) $user_id ID of the newly created user.
    Erforderlich: Ja
  • (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'.
    Erforderlich: Nein
    Standard: 'both'
Definiert in:
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.



Quellcode

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