wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_send_new_user_notification_to_admin › WordPress Filter Hooks

Since6.1.0
Deprecatedn/a
apply_filters( 'wp_send_new_user_notification_to_admin', true, $user )
Parameters: (2)
  • (bool) $send Whether to send the email. Default true.
    Required: Yes
  • (WP_User) $user User object for new user.
    Required: Yes
Defined at:
Codex:

Filters whether the admin is notified of a new user registration.





Source

$send_notification_to_admin = apply_filters( 'wp_send_new_user_notification_to_admin', true, $user );