Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_send_new_user_notifications ›

Desde4.4.0
Obsoleton/a
wp_send_new_user_notifications ( $user_id, $notify = 'both' )
Parâmetros: (2)
  • (int) $user_id ID of the newly created user.
    Required: Yes
  • (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: No
    Padrão: 'both'
Definido em:
Codex:
Log de mudanças:
  • 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.



Fonte

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