update_welcome_subject
Filters the subject of the welcome email sent to the site administrator after site activation.
Использование
add_filter( 'update_welcome_subject', 'wp_kama_update_welcome_subject_filter' );
/**
* Function for `update_welcome_subject` filter-hook.
*
* @param string $subject Subject of the email.
*
* @return string
*/
function wp_kama_update_welcome_subject_filter( $subject ){
// filter...
return $subject;
}
- $subject(строка)
- Subject of the email.
Список изменений
| С версии 3.0.0 | Введена. |
Где вызывается хук
wp-includes/ms-functions.php 1738
$subject = apply_filters( 'update_welcome_subject', sprintf( $subject, $current_network->site_name, wp_unslash( $title ) ) );