WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 2057 | function wp_privacy_send_personal_data_export_email( $request_id ) { |
| 2058 | // Get the request data. |
| 2059 | $request = wp_get_user_request_data( $request_id ); |
| 2060 | |
| 2061 | if ( ! $request || 'export_personal_data' !== $request->action_name ) { |
| 2062 | return new WP_Error( 'invalid', __( 'Invalid request ID when sending personal data export email.' ) ); |
| 2063 | } |
| 2064 | |
| 2065 | /** This filter is documented in wp-includes/functions.php */ |
| 2066 | $expiration = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS ); |
| 2067 | $expiration_date = date_i18n( get_option( 'date_format' ), time() + $expiration ); |
| 2068 | |
| 2069 | /* translators: Do not translate EXPIRATION, LINK, SITENAME, SITEURL: those are placeholders. */ |
| 2070 | $email_text = __( |
| 2071 | 'Howdy, |
| 2072 | |
| 2073 | Your request for an export of personal data has been completed. You may |
| 2074 | download your personal data by clicking on the link below. For privacy |
| 2075 | and security, we will automatically delete the file on ###EXPIRATION###, |