site_admin_email_change_email хук-фильтрWP 4.9.0

Filters the contents of the email notification sent when the site admin email address is changed.

Использование

add_filter( 'site_admin_email_change_email', 'wp_kama_site_admin_email_change_filter', 10, 3 );

/**
 * Function for `site_admin_email_change_email` filter-hook.
 * 
 * @param array  $email_change_email Used to build wp_mail().
 * @param string $old_email          The old site admin email address.
 * @param string $new_email          The new site admin email address.
 *
 * @return array
 */
function wp_kama_site_admin_email_change_filter( $email_change_email, $old_email, $new_email ){

	// filter...
	return $email_change_email;
}
$email_change_email(массив)

Used to build wp_mail().

  • to(строка)
    The intended recipient.

  • subject(строка)
    The subject of the email.

  • message(строка)
    The content of the email.

    The following strings have a special meaning and will get replaced dynamically:
    
    - ###OLD_EMAIL### The old site admin email address.
    - ###NEW_EMAIL### The new site admin email address.
    - ###SITENAME###  The name of the site.
    - ###SITEURL###   The URL to the site.
    
  • headers(строка)
    Headers.
$old_email(строка)
The old site admin email address.
$new_email(строка)
The new site admin email address.

Список изменений

С версии 4.9.0 Введена.

Где вызывается хук

wp_site_admin_email_change_notification()
site_admin_email_change_email
wp-includes/functions.php 7690
$email_change_email = apply_filters( 'site_admin_email_change_email', $email_change_email, $old_email, $new_email );

Где используется хук в WordPress

Использование не найдено.