apply_filters( 'user_request_confirmed_email_content', string $content, array $email_data )
- Since
- 5.8.0
Filters the body of the user request confirmation email.
Description
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.
Parameters
$contentstring- The email content.
$email_dataarray- { 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.
}$requestWP_User_RequestUser request object.$user_emailstringThe email address confirming a request.$descriptionstringDescription of the action being performed so the user knows what the email is for.$manage_urlstringThe link to click manage privacy requests of this type.$sitenamestringThe site name sending the mail.$siteurlstringThe site URL sending the mail.$admin_emailstringThe administrator email receiving the mail.
Fired at · 1
wp-includes/user.php:4345_wp_privacy_send_request_confirmation_notification()
Source
* @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. * } */ $content = apply_filters( 'user_request_confirmed_email_content', $content, $email_data ); $content = str_replace( '###SITENAME###', $email_data['sitename'], $content ); $content = str_replace( '###USER_EMAIL###', $email_data['user_email'], $content ); $content = str_replace( '###DESCRIPTION###', $email_data['description'], $content ); $content = str_replace( '###MANAGE_URL###', sanitize_url( $email_data['manage_url'] ), $content ); $content = str_replace( '###SITEURL###', sanitize_url( $email_data['siteurl'] ), $content );History
Introduced in 5.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.