send_new_site_email хук-фильтр . WP 5.6.0
Filters whether to send an email to the Multisite network administrator when a new site is created.
Return false to disable sending the email.
Использование
add_filter( 'send_new_site_email', 'filter_function_name_3688', 10, 3 ); function filter_function_name_3688( $send, $site, $user ){ // filter... return $send; }
- $send(true/false)
- Whether to send the email.
- $site(WP_Site)
- Site object of the new site.
- $user(WP_User)
- User object of the administrator of the new site.
Список изменений
С версии 5.6.0 | Введена. |
Где вызывается хук
send_new_site_email
wp-includes/ms-functions.php 1731
if ( ! apply_filters( 'send_new_site_email', true, $site, $user ) ) {