id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 44376 Make $email_data array filterable in `wp_send_user_request()` rwebster85 "It would be very handy for developers if we could hook into the `$email_data` array and filter it. That way we could replace the url or other parameters. Real world example: my site blocks access to all WP dashboard and backend pages like `wp-login.php` in order to present a front-end only experience to users. I would like my privacy related request authorisation links to be front-end also. `$email_data` as seen here: https://github.com/WordPress/WordPress/blob/3ee58b55b14683af4c568bce1845c37408c88fbb/wp-includes/user.php#L3329 Something like the following would be good: {{{#!php $email_data = array( 'email' => $request->email, 'description' => wp_user_request_action_description( $request->action_name ), 'confirm_url' => add_query_arg( array( 'action' => 'confirmaction', 'request_id' => $request_id, 'confirm_key' => wp_generate_user_request_key( $request_id ), ), site_url( 'wp-login.php' ) ), 'sitename' => is_multisite() ? get_site_option( 'site_name' ) : get_option( 'blogname' ), 'siteurl' => network_home_url(), ); $email_data = apply_filters( 'wp_send_user_request_email_data', $email_data, $request, $request_id ); }}} Note: My first ticket, apologies for any errors in submission." enhancement closed normal Privacy 4.9.6 normal duplicate