new_admin_email_subject
Filter HookDescription
Filters the subject of the email sent when a change of site admin email address is attempted.Hook Information
File Location |
wp-admin/includes/misc.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1531 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$subject
|
Subject of the email. |
Usage Examples
Basic Usage
<?php
// Hook into new_admin_email_subject
add_filter('new_admin_email_subject', 'my_custom_filter', 10, 1);
function my_custom_filter($subject) {
// Your custom filtering logic here
return $subject;
}
Source Code Context
wp-admin/includes/misc.php:1531
- How this hook is used in WordPress core
<?php
1526 *
1527 * @since 6.5.0
1528 *
1529 * @param string $subject Subject of the email.
1530 */
1531 $subject = apply_filters( 'new_admin_email_subject', $subject );
1532
1533 wp_mail( $value, $subject, $content );
1534
1535 if ( $switched_locale ) {
1536 restore_previous_locale();
PHP Documentation
<?php
/**
* Filters the subject of the email sent when a change of site admin email address is attempted.
*
* @since 6.5.0
*
* @param string $subject Subject of the email.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/includes/misc.php
Related Hooks
Related hooks will be displayed here in future updates.