wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_send_new_user_notifications › WordPress Function

Depuis4.4.0
Dépréciéen/a
wp_send_new_user_notifications ( $user_id, $notify = 'both' )
Paramètres: (2)
  • (int) $user_id ID of the newly created user.
    Requis: Oui
  • (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'.
    Requis: Non
    Défaut: 'both'
Défini(e) dans:
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.


Source

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