user_request_confirmed_email_subject
Filter HookDescription
Filters the subject of the user request confirmation email. }Hook Information
File Location |
wp-includes/user.php
View on GitHub
|
Hook Type | Filter |
Line Number | 4244 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$subject
|
The email subject. |
string
|
$sitename
|
The name of the site. |
array
|
$email_data
|
{ Data relating to the account action email. |
Usage Examples
Basic Usage
<?php
// Hook into user_request_confirmed_email_subject
add_filter('user_request_confirmed_email_subject', 'my_custom_filter', 10, 3);
function my_custom_filter($subject, $sitename, $email_data) {
// Your custom filtering logic here
return $subject;
}
Source Code Context
wp-includes/user.php:4244
- How this hook is used in WordPress core
<?php
4239 * @type string $sitename The site name sending the mail.
4240 * @type string $siteurl The site URL sending the mail.
4241 * @type string $admin_email The administrator email receiving the mail.
4242 * }
4243 */
4244 $subject = apply_filters( 'user_request_confirmed_email_subject', $subject, $email_data['sitename'], $email_data );
4245
4246 /* translators: Do not translate SITENAME, USER_EMAIL, DESCRIPTION, MANAGE_URL, SITEURL; those are placeholders. */
4247 $content = __(
4248 'Howdy,
4249
PHP Documentation
<?php
/**
* Filters the subject of the user request confirmation email.
*
* @since 4.9.8
*
* @param string $subject The email subject.
* @param string $sitename The name of the site.
* @param array $email_data {
* Data relating to the account action email.
*
* @type WP_User_Request $request User request object.
* @type string $user_email The email address confirming a request.
* @type string $description Description of the action being performed so the user knows what the email is for.
* @type string $manage_url The link to click manage privacy requests of this type.
* @type string $sitename The site name sending the mail.
* @type string $siteurl The site URL sending the mail.
* @type string $admin_email The administrator email receiving the mail.
* }
*/
Quick Info
- Hook Type: Filter
- Parameters: 3
- File: wp-includes/user.php
Related Hooks
Related hooks will be displayed here in future updates.