Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-inclu...
File: user.php
'group_description' => __( 'User’s location data used for the Community Events in the WordPress Events and News dashboard widget.' ),
[4000] Fix | Delete
'item_id' => "community-events-location-{$user->ID}",
[4001] Fix | Delete
'data' => $location_data_to_export,
[4002] Fix | Delete
);
[4003] Fix | Delete
}
[4004] Fix | Delete
[4005] Fix | Delete
if ( isset( $user_meta['session_tokens'] ) ) {
[4006] Fix | Delete
$session_tokens = maybe_unserialize( $user_meta['session_tokens'][0] );
[4007] Fix | Delete
[4008] Fix | Delete
$session_tokens_props_to_export = array(
[4009] Fix | Delete
'expiration' => __( 'Expiration' ),
[4010] Fix | Delete
'ip' => __( 'IP' ),
[4011] Fix | Delete
'ua' => __( 'User Agent' ),
[4012] Fix | Delete
'login' => __( 'Last Login' ),
[4013] Fix | Delete
);
[4014] Fix | Delete
[4015] Fix | Delete
foreach ( $session_tokens as $token_key => $session_token ) {
[4016] Fix | Delete
$session_tokens_data_to_export = array();
[4017] Fix | Delete
[4018] Fix | Delete
foreach ( $session_tokens_props_to_export as $key => $name ) {
[4019] Fix | Delete
if ( ! empty( $session_token[ $key ] ) ) {
[4020] Fix | Delete
$value = $session_token[ $key ];
[4021] Fix | Delete
if ( in_array( $key, array( 'expiration', 'login' ), true ) ) {
[4022] Fix | Delete
$value = date_i18n( 'F d, Y H:i A', $value );
[4023] Fix | Delete
}
[4024] Fix | Delete
$session_tokens_data_to_export[] = array(
[4025] Fix | Delete
'name' => $name,
[4026] Fix | Delete
'value' => $value,
[4027] Fix | Delete
);
[4028] Fix | Delete
}
[4029] Fix | Delete
}
[4030] Fix | Delete
[4031] Fix | Delete
$data_to_export[] = array(
[4032] Fix | Delete
'group_id' => 'session-tokens',
[4033] Fix | Delete
'group_label' => __( 'Session Tokens' ),
[4034] Fix | Delete
'group_description' => __( 'User’s Session Tokens data.' ),
[4035] Fix | Delete
'item_id' => "session-tokens-{$user->ID}-{$token_key}",
[4036] Fix | Delete
'data' => $session_tokens_data_to_export,
[4037] Fix | Delete
);
[4038] Fix | Delete
}
[4039] Fix | Delete
}
[4040] Fix | Delete
[4041] Fix | Delete
return array(
[4042] Fix | Delete
'data' => $data_to_export,
[4043] Fix | Delete
'done' => true,
[4044] Fix | Delete
);
[4045] Fix | Delete
}
[4046] Fix | Delete
[4047] Fix | Delete
/**
[4048] Fix | Delete
* Updates log when privacy request is confirmed.
[4049] Fix | Delete
*
[4050] Fix | Delete
* @since 4.9.6
[4051] Fix | Delete
* @access private
[4052] Fix | Delete
*
[4053] Fix | Delete
* @param int $request_id ID of the request.
[4054] Fix | Delete
*/
[4055] Fix | Delete
function _wp_privacy_account_request_confirmed( $request_id ) {
[4056] Fix | Delete
$request = wp_get_user_request( $request_id );
[4057] Fix | Delete
[4058] Fix | Delete
if ( ! $request ) {
[4059] Fix | Delete
return;
[4060] Fix | Delete
}
[4061] Fix | Delete
[4062] Fix | Delete
if ( ! in_array( $request->status, array( 'request-pending', 'request-failed' ), true ) ) {
[4063] Fix | Delete
return;
[4064] Fix | Delete
}
[4065] Fix | Delete
[4066] Fix | Delete
update_post_meta( $request_id, '_wp_user_request_confirmed_timestamp', time() );
[4067] Fix | Delete
wp_update_post(
[4068] Fix | Delete
array(
[4069] Fix | Delete
'ID' => $request_id,
[4070] Fix | Delete
'post_status' => 'request-confirmed',
[4071] Fix | Delete
)
[4072] Fix | Delete
);
[4073] Fix | Delete
}
[4074] Fix | Delete
[4075] Fix | Delete
/**
[4076] Fix | Delete
* Notifies the site administrator via email when a request is confirmed.
[4077] Fix | Delete
*
[4078] Fix | Delete
* Without this, the admin would have to manually check the site to see if any
[4079] Fix | Delete
* action was needed on their part yet.
[4080] Fix | Delete
*
[4081] Fix | Delete
* @since 4.9.6
[4082] Fix | Delete
*
[4083] Fix | Delete
* @param int $request_id The ID of the request.
[4084] Fix | Delete
*/
[4085] Fix | Delete
function _wp_privacy_send_request_confirmation_notification( $request_id ) {
[4086] Fix | Delete
$request = wp_get_user_request( $request_id );
[4087] Fix | Delete
[4088] Fix | Delete
if ( ! ( $request instanceof WP_User_Request ) || 'request-confirmed' !== $request->status ) {
[4089] Fix | Delete
return;
[4090] Fix | Delete
}
[4091] Fix | Delete
[4092] Fix | Delete
$already_notified = (bool) get_post_meta( $request_id, '_wp_admin_notified', true );
[4093] Fix | Delete
[4094] Fix | Delete
if ( $already_notified ) {
[4095] Fix | Delete
return;
[4096] Fix | Delete
}
[4097] Fix | Delete
[4098] Fix | Delete
if ( 'export_personal_data' === $request->action_name ) {
[4099] Fix | Delete
$manage_url = admin_url( 'export-personal-data.php' );
[4100] Fix | Delete
} elseif ( 'remove_personal_data' === $request->action_name ) {
[4101] Fix | Delete
$manage_url = admin_url( 'erase-personal-data.php' );
[4102] Fix | Delete
}
[4103] Fix | Delete
$action_description = wp_user_request_action_description( $request->action_name );
[4104] Fix | Delete
[4105] Fix | Delete
/**
[4106] Fix | Delete
* Filters the recipient of the data request confirmation notification.
[4107] Fix | Delete
*
[4108] Fix | Delete
* In a Multisite environment, this will default to the email address of the
[4109] Fix | Delete
* network admin because, by default, single site admins do not have the
[4110] Fix | Delete
* capabilities required to process requests. Some networks may wish to
[4111] Fix | Delete
* delegate those capabilities to a single-site admin, or a dedicated person
[4112] Fix | Delete
* responsible for managing privacy requests.
[4113] Fix | Delete
*
[4114] Fix | Delete
* @since 4.9.6
[4115] Fix | Delete
*
[4116] Fix | Delete
* @param string $admin_email The email address of the notification recipient.
[4117] Fix | Delete
* @param WP_User_Request $request The request that is initiating the notification.
[4118] Fix | Delete
*/
[4119] Fix | Delete
$admin_email = apply_filters( 'user_request_confirmed_email_to', get_site_option( 'admin_email' ), $request );
[4120] Fix | Delete
[4121] Fix | Delete
$email_data = array(
[4122] Fix | Delete
'request' => $request,
[4123] Fix | Delete
'user_email' => $request->email,
[4124] Fix | Delete
'description' => $action_description,
[4125] Fix | Delete
'manage_url' => $manage_url,
[4126] Fix | Delete
'sitename' => wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ),
[4127] Fix | Delete
'siteurl' => home_url(),
[4128] Fix | Delete
'admin_email' => $admin_email,
[4129] Fix | Delete
);
[4130] Fix | Delete
[4131] Fix | Delete
$subject = sprintf(
[4132] Fix | Delete
/* translators: Privacy data request confirmed notification email subject. 1: Site title, 2: Name of the confirmed action. */
[4133] Fix | Delete
__( '[%1$s] Action Confirmed: %2$s' ),
[4134] Fix | Delete
$email_data['sitename'],
[4135] Fix | Delete
$action_description
[4136] Fix | Delete
);
[4137] Fix | Delete
[4138] Fix | Delete
/**
[4139] Fix | Delete
* Filters the subject of the user request confirmation email.
[4140] Fix | Delete
*
[4141] Fix | Delete
* @since 4.9.8
[4142] Fix | Delete
*
[4143] Fix | Delete
* @param string $subject The email subject.
[4144] Fix | Delete
* @param string $sitename The name of the site.
[4145] Fix | Delete
* @param array $email_data {
[4146] Fix | Delete
* Data relating to the account action email.
[4147] Fix | Delete
*
[4148] Fix | Delete
* @type WP_User_Request $request User request object.
[4149] Fix | Delete
* @type string $user_email The email address confirming a request
[4150] Fix | Delete
* @type string $description Description of the action being performed so the user knows what the email is for.
[4151] Fix | Delete
* @type string $manage_url The link to click manage privacy requests of this type.
[4152] Fix | Delete
* @type string $sitename The site name sending the mail.
[4153] Fix | Delete
* @type string $siteurl The site URL sending the mail.
[4154] Fix | Delete
* @type string $admin_email The administrator email receiving the mail.
[4155] Fix | Delete
* }
[4156] Fix | Delete
*/
[4157] Fix | Delete
$subject = apply_filters( 'user_request_confirmed_email_subject', $subject, $email_data['sitename'], $email_data );
[4158] Fix | Delete
[4159] Fix | Delete
/* translators: Do not translate SITENAME, USER_EMAIL, DESCRIPTION, MANAGE_URL, SITEURL; those are placeholders. */
[4160] Fix | Delete
$content = __(
[4161] Fix | Delete
'Howdy,
[4162] Fix | Delete
[4163] Fix | Delete
A user data privacy request has been confirmed on ###SITENAME###:
[4164] Fix | Delete
[4165] Fix | Delete
User: ###USER_EMAIL###
[4166] Fix | Delete
Request: ###DESCRIPTION###
[4167] Fix | Delete
[4168] Fix | Delete
You can view and manage these data privacy requests here:
[4169] Fix | Delete
[4170] Fix | Delete
###MANAGE_URL###
[4171] Fix | Delete
[4172] Fix | Delete
Regards,
[4173] Fix | Delete
All at ###SITENAME###
[4174] Fix | Delete
###SITEURL###'
[4175] Fix | Delete
);
[4176] Fix | Delete
[4177] Fix | Delete
/**
[4178] Fix | Delete
* Filters the body of the user request confirmation email.
[4179] Fix | Delete
*
[4180] Fix | Delete
* The email is sent to an administrator when a user request is confirmed.
[4181] Fix | Delete
*
[4182] Fix | Delete
* The following strings have a special meaning and will get replaced dynamically:
[4183] Fix | Delete
*
[4184] Fix | Delete
* ###SITENAME### The name of the site.
[4185] Fix | Delete
* ###USER_EMAIL### The user email for the request.
[4186] Fix | Delete
* ###DESCRIPTION### Description of the action being performed so the user knows what the email is for.
[4187] Fix | Delete
* ###MANAGE_URL### The URL to manage requests.
[4188] Fix | Delete
* ###SITEURL### The URL to the site.
[4189] Fix | Delete
*
[4190] Fix | Delete
* @since 4.9.6
[4191] Fix | Delete
* @deprecated 5.8.0 Use {@see 'user_request_confirmed_email_content'} instead.
[4192] Fix | Delete
* For user erasure fulfillment email content
[4193] Fix | Delete
* use {@see 'user_erasure_fulfillment_email_content'} instead.
[4194] Fix | Delete
*
[4195] Fix | Delete
* @param string $content The email content.
[4196] Fix | Delete
* @param array $email_data {
[4197] Fix | Delete
* Data relating to the account action email.
[4198] Fix | Delete
*
[4199] Fix | Delete
* @type WP_User_Request $request User request object.
[4200] Fix | Delete
* @type string $user_email The email address confirming a request
[4201] Fix | Delete
* @type string $description Description of the action being performed
[4202] Fix | Delete
* so the user knows what the email is for.
[4203] Fix | Delete
* @type string $manage_url The link to click manage privacy requests of this type.
[4204] Fix | Delete
* @type string $sitename The site name sending the mail.
[4205] Fix | Delete
* @type string $siteurl The site URL sending the mail.
[4206] Fix | Delete
* @type string $admin_email The administrator email receiving the mail.
[4207] Fix | Delete
* }
[4208] Fix | Delete
*/
[4209] Fix | Delete
$content = apply_filters_deprecated(
[4210] Fix | Delete
'user_confirmed_action_email_content',
[4211] Fix | Delete
array( $content, $email_data ),
[4212] Fix | Delete
'5.8.0',
[4213] Fix | Delete
sprintf(
[4214] Fix | Delete
/* translators: 1 & 2: Deprecation replacement options. */
[4215] Fix | Delete
__( '%1$s or %2$s' ),
[4216] Fix | Delete
'user_request_confirmed_email_content',
[4217] Fix | Delete
'user_erasure_fulfillment_email_content'
[4218] Fix | Delete
)
[4219] Fix | Delete
);
[4220] Fix | Delete
[4221] Fix | Delete
/**
[4222] Fix | Delete
* Filters the body of the user request confirmation email.
[4223] Fix | Delete
*
[4224] Fix | Delete
* The email is sent to an administrator when a user request is confirmed.
[4225] Fix | Delete
* The following strings have a special meaning and will get replaced dynamically:
[4226] Fix | Delete
*
[4227] Fix | Delete
* ###SITENAME### The name of the site.
[4228] Fix | Delete
* ###USER_EMAIL### The user email for the request.
[4229] Fix | Delete
* ###DESCRIPTION### Description of the action being performed so the user knows what the email is for.
[4230] Fix | Delete
* ###MANAGE_URL### The URL to manage requests.
[4231] Fix | Delete
* ###SITEURL### The URL to the site.
[4232] Fix | Delete
*
[4233] Fix | Delete
* @since 5.8.0
[4234] Fix | Delete
*
[4235] Fix | Delete
* @param string $content The email content.
[4236] Fix | Delete
* @param array $email_data {
[4237] Fix | Delete
* Data relating to the account action email.
[4238] Fix | Delete
*
[4239] Fix | Delete
* @type WP_User_Request $request User request object.
[4240] Fix | Delete
* @type string $user_email The email address confirming a request
[4241] Fix | Delete
* @type string $description Description of the action being performed so the user knows what the email is for.
[4242] Fix | Delete
* @type string $manage_url The link to click manage privacy requests of this type.
[4243] Fix | Delete
* @type string $sitename The site name sending the mail.
[4244] Fix | Delete
* @type string $siteurl The site URL sending the mail.
[4245] Fix | Delete
* @type string $admin_email The administrator email receiving the mail.
[4246] Fix | Delete
* }
[4247] Fix | Delete
*/
[4248] Fix | Delete
$content = apply_filters( 'user_request_confirmed_email_content', $content, $email_data );
[4249] Fix | Delete
[4250] Fix | Delete
$content = str_replace( '###SITENAME###', $email_data['sitename'], $content );
[4251] Fix | Delete
$content = str_replace( '###USER_EMAIL###', $email_data['user_email'], $content );
[4252] Fix | Delete
$content = str_replace( '###DESCRIPTION###', $email_data['description'], $content );
[4253] Fix | Delete
$content = str_replace( '###MANAGE_URL###', sanitize_url( $email_data['manage_url'] ), $content );
[4254] Fix | Delete
$content = str_replace( '###SITEURL###', sanitize_url( $email_data['siteurl'] ), $content );
[4255] Fix | Delete
[4256] Fix | Delete
$headers = '';
[4257] Fix | Delete
[4258] Fix | Delete
/**
[4259] Fix | Delete
* Filters the headers of the user request confirmation email.
[4260] Fix | Delete
*
[4261] Fix | Delete
* @since 5.4.0
[4262] Fix | Delete
*
[4263] Fix | Delete
* @param string|array $headers The email headers.
[4264] Fix | Delete
* @param string $subject The email subject.
[4265] Fix | Delete
* @param string $content The email content.
[4266] Fix | Delete
* @param int $request_id The request ID.
[4267] Fix | Delete
* @param array $email_data {
[4268] Fix | Delete
* Data relating to the account action email.
[4269] Fix | Delete
*
[4270] Fix | Delete
* @type WP_User_Request $request User request object.
[4271] Fix | Delete
* @type string $user_email The email address confirming a request
[4272] Fix | Delete
* @type string $description Description of the action being performed so the user knows what the email is for.
[4273] Fix | Delete
* @type string $manage_url The link to click manage privacy requests of this type.
[4274] Fix | Delete
* @type string $sitename The site name sending the mail.
[4275] Fix | Delete
* @type string $siteurl The site URL sending the mail.
[4276] Fix | Delete
* @type string $admin_email The administrator email receiving the mail.
[4277] Fix | Delete
* }
[4278] Fix | Delete
*/
[4279] Fix | Delete
$headers = apply_filters( 'user_request_confirmed_email_headers', $headers, $subject, $content, $request_id, $email_data );
[4280] Fix | Delete
[4281] Fix | Delete
$email_sent = wp_mail( $email_data['admin_email'], $subject, $content, $headers );
[4282] Fix | Delete
[4283] Fix | Delete
if ( $email_sent ) {
[4284] Fix | Delete
update_post_meta( $request_id, '_wp_admin_notified', true );
[4285] Fix | Delete
}
[4286] Fix | Delete
}
[4287] Fix | Delete
[4288] Fix | Delete
/**
[4289] Fix | Delete
* Notifies the user when their erasure request is fulfilled.
[4290] Fix | Delete
*
[4291] Fix | Delete
* Without this, the user would never know if their data was actually erased.
[4292] Fix | Delete
*
[4293] Fix | Delete
* @since 4.9.6
[4294] Fix | Delete
*
[4295] Fix | Delete
* @param int $request_id The privacy request post ID associated with this request.
[4296] Fix | Delete
*/
[4297] Fix | Delete
function _wp_privacy_send_erasure_fulfillment_notification( $request_id ) {
[4298] Fix | Delete
$request = wp_get_user_request( $request_id );
[4299] Fix | Delete
[4300] Fix | Delete
if ( ! ( $request instanceof WP_User_Request ) || 'request-completed' !== $request->status ) {
[4301] Fix | Delete
return;
[4302] Fix | Delete
}
[4303] Fix | Delete
[4304] Fix | Delete
$already_notified = (bool) get_post_meta( $request_id, '_wp_user_notified', true );
[4305] Fix | Delete
[4306] Fix | Delete
if ( $already_notified ) {
[4307] Fix | Delete
return;
[4308] Fix | Delete
}
[4309] Fix | Delete
[4310] Fix | Delete
// Localize message content for user; fallback to site default for visitors.
[4311] Fix | Delete
if ( ! empty( $request->user_id ) ) {
[4312] Fix | Delete
$switched_locale = switch_to_user_locale( $request->user_id );
[4313] Fix | Delete
} else {
[4314] Fix | Delete
$switched_locale = switch_to_locale( get_locale() );
[4315] Fix | Delete
}
[4316] Fix | Delete
[4317] Fix | Delete
/**
[4318] Fix | Delete
* Filters the recipient of the data erasure fulfillment notification.
[4319] Fix | Delete
*
[4320] Fix | Delete
* @since 4.9.6
[4321] Fix | Delete
*
[4322] Fix | Delete
* @param string $user_email The email address of the notification recipient.
[4323] Fix | Delete
* @param WP_User_Request $request The request that is initiating the notification.
[4324] Fix | Delete
*/
[4325] Fix | Delete
$user_email = apply_filters( 'user_erasure_fulfillment_email_to', $request->email, $request );
[4326] Fix | Delete
[4327] Fix | Delete
$email_data = array(
[4328] Fix | Delete
'request' => $request,
[4329] Fix | Delete
'message_recipient' => $user_email,
[4330] Fix | Delete
'privacy_policy_url' => get_privacy_policy_url(),
[4331] Fix | Delete
'sitename' => wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ),
[4332] Fix | Delete
'siteurl' => home_url(),
[4333] Fix | Delete
);
[4334] Fix | Delete
[4335] Fix | Delete
$subject = sprintf(
[4336] Fix | Delete
/* translators: Erasure request fulfilled notification email subject. %s: Site title. */
[4337] Fix | Delete
__( '[%s] Erasure Request Fulfilled' ),
[4338] Fix | Delete
$email_data['sitename']
[4339] Fix | Delete
);
[4340] Fix | Delete
[4341] Fix | Delete
/**
[4342] Fix | Delete
* Filters the subject of the email sent when an erasure request is completed.
[4343] Fix | Delete
*
[4344] Fix | Delete
* @since 4.9.8
[4345] Fix | Delete
* @deprecated 5.8.0 Use {@see 'user_erasure_fulfillment_email_subject'} instead.
[4346] Fix | Delete
*
[4347] Fix | Delete
* @param string $subject The email subject.
[4348] Fix | Delete
* @param string $sitename The name of the site.
[4349] Fix | Delete
* @param array $email_data {
[4350] Fix | Delete
* Data relating to the account action email.
[4351] Fix | Delete
*
[4352] Fix | Delete
* @type WP_User_Request $request User request object.
[4353] Fix | Delete
* @type string $message_recipient The address that the email will be sent to. Defaults
[4354] Fix | Delete
* to the value of `$request->email`, but can be changed
[4355] Fix | Delete
* by the `user_erasure_fulfillment_email_to` filter.
[4356] Fix | Delete
* @type string $privacy_policy_url Privacy policy URL.
[4357] Fix | Delete
* @type string $sitename The site name sending the mail.
[4358] Fix | Delete
* @type string $siteurl The site URL sending the mail.
[4359] Fix | Delete
* }
[4360] Fix | Delete
*/
[4361] Fix | Delete
$subject = apply_filters_deprecated(
[4362] Fix | Delete
'user_erasure_complete_email_subject',
[4363] Fix | Delete
array( $subject, $email_data['sitename'], $email_data ),
[4364] Fix | Delete
'5.8.0',
[4365] Fix | Delete
'user_erasure_fulfillment_email_subject'
[4366] Fix | Delete
);
[4367] Fix | Delete
[4368] Fix | Delete
/**
[4369] Fix | Delete
* Filters the subject of the email sent when an erasure request is completed.
[4370] Fix | Delete
*
[4371] Fix | Delete
* @since 5.8.0
[4372] Fix | Delete
*
[4373] Fix | Delete
* @param string $subject The email subject.
[4374] Fix | Delete
* @param string $sitename The name of the site.
[4375] Fix | Delete
* @param array $email_data {
[4376] Fix | Delete
* Data relating to the account action email.
[4377] Fix | Delete
*
[4378] Fix | Delete
* @type WP_User_Request $request User request object.
[4379] Fix | Delete
* @type string $message_recipient The address that the email will be sent to. Defaults
[4380] Fix | Delete
* to the value of `$request->email`, but can be changed
[4381] Fix | Delete
* by the `user_erasure_fulfillment_email_to` filter.
[4382] Fix | Delete
* @type string $privacy_policy_url Privacy policy URL.
[4383] Fix | Delete
* @type string $sitename The site name sending the mail.
[4384] Fix | Delete
* @type string $siteurl The site URL sending the mail.
[4385] Fix | Delete
* }
[4386] Fix | Delete
*/
[4387] Fix | Delete
$subject = apply_filters( 'user_erasure_fulfillment_email_subject', $subject, $email_data['sitename'], $email_data );
[4388] Fix | Delete
[4389] Fix | Delete
/* translators: Do not translate SITENAME, SITEURL; those are placeholders. */
[4390] Fix | Delete
$content = __(
[4391] Fix | Delete
'Howdy,
[4392] Fix | Delete
[4393] Fix | Delete
Your request to erase your personal data on ###SITENAME### has been completed.
[4394] Fix | Delete
[4395] Fix | Delete
If you have any follow-up questions or concerns, please contact the site administrator.
[4396] Fix | Delete
[4397] Fix | Delete
Regards,
[4398] Fix | Delete
All at ###SITENAME###
[4399] Fix | Delete
###SITEURL###'
[4400] Fix | Delete
);
[4401] Fix | Delete
[4402] Fix | Delete
if ( ! empty( $email_data['privacy_policy_url'] ) ) {
[4403] Fix | Delete
/* translators: Do not translate SITENAME, SITEURL, PRIVACY_POLICY_URL; those are placeholders. */
[4404] Fix | Delete
$content = __(
[4405] Fix | Delete
'Howdy,
[4406] Fix | Delete
[4407] Fix | Delete
Your request to erase your personal data on ###SITENAME### has been completed.
[4408] Fix | Delete
[4409] Fix | Delete
If you have any follow-up questions or concerns, please contact the site administrator.
[4410] Fix | Delete
[4411] Fix | Delete
For more information, you can also read our privacy policy: ###PRIVACY_POLICY_URL###
[4412] Fix | Delete
[4413] Fix | Delete
Regards,
[4414] Fix | Delete
All at ###SITENAME###
[4415] Fix | Delete
###SITEURL###'
[4416] Fix | Delete
);
[4417] Fix | Delete
}
[4418] Fix | Delete
[4419] Fix | Delete
/**
[4420] Fix | Delete
* Filters the body of the data erasure fulfillment notification.
[4421] Fix | Delete
*
[4422] Fix | Delete
* The email is sent to a user when their data erasure request is fulfilled
[4423] Fix | Delete
* by an administrator.
[4424] Fix | Delete
*
[4425] Fix | Delete
* The following strings have a special meaning and will get replaced dynamically:
[4426] Fix | Delete
*
[4427] Fix | Delete
* ###SITENAME### The name of the site.
[4428] Fix | Delete
* ###PRIVACY_POLICY_URL### Privacy policy page URL.
[4429] Fix | Delete
* ###SITEURL### The URL to the site.
[4430] Fix | Delete
*
[4431] Fix | Delete
* @since 4.9.6
[4432] Fix | Delete
* @deprecated 5.8.0 Use {@see 'user_erasure_fulfillment_email_content'} instead.
[4433] Fix | Delete
* For user request confirmation email content
[4434] Fix | Delete
* use {@see 'user_request_confirmed_email_content'} instead.
[4435] Fix | Delete
*
[4436] Fix | Delete
* @param string $content The email content.
[4437] Fix | Delete
* @param array $email_data {
[4438] Fix | Delete
* Data relating to the account action email.
[4439] Fix | Delete
*
[4440] Fix | Delete
* @type WP_User_Request $request User request object.
[4441] Fix | Delete
* @type string $message_recipient The address that the email will be sent to. Defaults
[4442] Fix | Delete
* to the value of `$request->email`, but can be changed
[4443] Fix | Delete
* by the `user_erasure_fulfillment_email_to` filter.
[4444] Fix | Delete
* @type string $privacy_policy_url Privacy policy URL.
[4445] Fix | Delete
* @type string $sitename The site name sending the mail.
[4446] Fix | Delete
* @type string $siteurl The site URL sending the mail.
[4447] Fix | Delete
* }
[4448] Fix | Delete
*/
[4449] Fix | Delete
$content = apply_filters_deprecated(
[4450] Fix | Delete
'user_confirmed_action_email_content',
[4451] Fix | Delete
array( $content, $email_data ),
[4452] Fix | Delete
'5.8.0',
[4453] Fix | Delete
sprintf(
[4454] Fix | Delete
/* translators: 1 & 2: Deprecation replacement options. */
[4455] Fix | Delete
__( '%1$s or %2$s' ),
[4456] Fix | Delete
'user_erasure_fulfillment_email_content',
[4457] Fix | Delete
'user_request_confirmed_email_content'
[4458] Fix | Delete
)
[4459] Fix | Delete
);
[4460] Fix | Delete
[4461] Fix | Delete
/**
[4462] Fix | Delete
* Filters the body of the data erasure fulfillment notification.
[4463] Fix | Delete
*
[4464] Fix | Delete
* The email is sent to a user when their data erasure request is fulfilled
[4465] Fix | Delete
* by an administrator.
[4466] Fix | Delete
*
[4467] Fix | Delete
* The following strings have a special meaning and will get replaced dynamically:
[4468] Fix | Delete
*
[4469] Fix | Delete
* ###SITENAME### The name of the site.
[4470] Fix | Delete
* ###PRIVACY_POLICY_URL### Privacy policy page URL.
[4471] Fix | Delete
* ###SITEURL### The URL to the site.
[4472] Fix | Delete
*
[4473] Fix | Delete
* @since 5.8.0
[4474] Fix | Delete
*
[4475] Fix | Delete
* @param string $content The email content.
[4476] Fix | Delete
* @param array $email_data {
[4477] Fix | Delete
* Data relating to the account action email.
[4478] Fix | Delete
*
[4479] Fix | Delete
* @type WP_User_Request $request User request object.
[4480] Fix | Delete
* @type string $message_recipient The address that the email will be sent to. Defaults
[4481] Fix | Delete
* to the value of `$request->email`, but can be changed
[4482] Fix | Delete
* by the `user_erasure_fulfillment_email_to` filter.
[4483] Fix | Delete
* @type string $privacy_policy_url Privacy policy URL.
[4484] Fix | Delete
* @type string $sitename The site name sending the mail.
[4485] Fix | Delete
* @type string $siteurl The site URL sending the mail.
[4486] Fix | Delete
* }
[4487] Fix | Delete
*/
[4488] Fix | Delete
$content = apply_filters( 'user_erasure_fulfillment_email_content', $content, $email_data );
[4489] Fix | Delete
[4490] Fix | Delete
$content = str_replace( '###SITENAME###', $email_data['sitename'], $content );
[4491] Fix | Delete
$content = str_replace( '###PRIVACY_POLICY_URL###', $email_data['privacy_policy_url'], $content );
[4492] Fix | Delete
$content = str_replace( '###SITEURL###', sanitize_url( $email_data['siteurl'] ), $content );
[4493] Fix | Delete
[4494] Fix | Delete
$headers = '';
[4495] Fix | Delete
[4496] Fix | Delete
/**
[4497] Fix | Delete
* Filters the headers of the data erasure fulfillment notification.
[4498] Fix | Delete
*
[4499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function