user_request_confirmed_email_content
Filter HookDescription
Filters the body of the user request confirmation email. The email is sent to an administrator when a user request is confirmed. The following strings have a special meaning and will get replaced dynamically: ###SITENAME### The name of the site. ###USER_EMAIL### The user email for the request. ###DESCRIPTION### Description of the action being performed so the user knows what the email is for. ###MANAGE_URL### The URL to manage requests. ###SITEURL### The URL to the site. }Hook Information
File Location |
wp-includes/user.php
View on GitHub
|
Hook Type | Filter |
Line Number | 4335 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$content
|
The email content. |
array
|
$email_data
|
{ Data relating to the account action email. |
Usage Examples
Basic Usage
<?php
// Hook into user_request_confirmed_email_content
add_filter('user_request_confirmed_email_content', 'my_custom_filter', 10, 2);
function my_custom_filter($content, $email_data) {
// Your custom filtering logic here
return $content;
}
Source Code Context
wp-includes/user.php:4335
- How this hook is used in WordPress core
<?php
4330 * @type string $sitename The site name sending the mail.
4331 * @type string $siteurl The site URL sending the mail.
4332 * @type string $admin_email The administrator email receiving the mail.
4333 * }
4334 */
4335 $content = apply_filters( 'user_request_confirmed_email_content', $content, $email_data );
4336
4337 $content = str_replace( '###SITENAME###', $email_data['sitename'], $content );
4338 $content = str_replace( '###USER_EMAIL###', $email_data['user_email'], $content );
4339 $content = str_replace( '###DESCRIPTION###', $email_data['description'], $content );
4340 $content = str_replace( '###MANAGE_URL###', sanitize_url( $email_data['manage_url'] ), $content );
PHP Documentation
<?php
/**
* Filters the body of the user request confirmation email.
*
* The email is sent to an administrator when a user request is confirmed.
* The following strings have a special meaning and will get replaced dynamically:
*
* ###SITENAME### The name of the site.
* ###USER_EMAIL### The user email for the request.
* ###DESCRIPTION### Description of the action being performed so the user knows what the email is for.
* ###MANAGE_URL### The URL to manage requests.
* ###SITEURL### The URL to the site.
*
* @since 5.8.0
*
* @param string $content The email content.
* @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: 2
- File: wp-includes/user.php
Related Hooks
Related hooks will be displayed here in future updates.