apply_filters_deprecated( 'user_confirmed_action_email_content', string $content, array $email_data )
- Since
- 4.9.6
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.
Compatibility
Deprecated in WordPress 5.8.0. Use {@see 'user_request_confirmed_email_content'} instead.<br> For user erasure fulfillment email content use {@see 'user_erasure_fulfillment_email_content'} instead.
- WordPress
- since 4.9.6
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
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.
Where this hook fires · 2
wp-includes/user.php:4399_wp_privacy_send_request_confirmation_notification()wp-includes/user.php:4639_wp_privacy_send_erasure_fulfillment_notification()
Source code
* @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_deprecated( 'user_confirmed_action_email_content', array( $content, $email_data ), '5.8.0', sprintf( /* translators: 1 & 2: Deprecation replacement options. */ __( '%1$s or %2$s' ),Changelog
Introduced in 4.9.6. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
5.8.0
Deprecated. Use 'user_request_confirmed_email_content' instead.
For user erasure fulfillment email content use 'user_erasure_fulfillment_email_content' instead.from the docblock
For user erasure fulfillment email content use 'user_erasure_fulfillment_email_content' instead.from the docblock
4.9.6
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 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.