Notice: Undefined variable: manage_url in … wp-includes\user.php on line 3643
-
Hi,
The code in the wp-includes/user.php file on line 3643 is not ready to be customized.
I developed a plugin to meet the new privacy requirements. I created the Personal Data Correction option using the same structure that WordPress already offers for Data Export and Removal.
I then need to customize the link that goes to ###MANAGE_URL###
Using the user_request_confirmed_email_content filter I even get it right. But the problem of my error becomes this code:
if ( 'export_personal_data' === $request->action_name ) { $manage_url = admin_url( 'export-personal-data.php' ); } elseif ( 'remove_personal_data' === $request->action_name ) { $manage_url = admin_url( 'erase-personal-data.php' ); }
It only creates the $manage_url variable for the two case types that WordPress considers: export_personal_data and remove_personal_data
And my custom case is rectify_personal_data
When he tries to use this variable in the following code, the error occurs:
$email_data = array( 'request' => $request, 'user_email' => $request->email, 'description' => $action_description, 'manage_url' => $manage_url, 'sitename' => wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ), 'siteurl' => home_url(), 'admin_email' => $admin_email, );
- The topic ‘Notice: Undefined variable: manage_url in … wp-includes\user.php on line 3643’ is closed to new replies.