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 |
---|---|
2192 | function wp_privacy_send_personal_data_export_email( $request_id ) { |
2193 | // Get the request data. |
2194 | $request = wp_get_user_request_data( $request_id ); |
2195 |
|
2196 | if ( ! $request || 'export_personal_data' !== $request->action_name ) { |
2197 | return new WP_Error( 'invalid_request', __( 'Invalid request ID when sending personal data export email.' ) ); |
2198 | } |
2199 |
|
2200 | /** This filter is documented in wp-includes/functions.php */ |
2201 | $expiration = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS ); |
2202 | $expiration_date = date_i18n( get_option( 'date_format' ), time() + $expiration ); |
2203 |
|
2204 | /* translators: Do not translate EXPIRATION, LINK, SITENAME, SITEURL: those are placeholders. */ |
2205 | $email_text = __( |
2206 | 'Howdy, |
2207 |
|
2208 | Your request for an export of personal data has been completed. You may |
2209 | download your personal data by clicking on the link below. For privacy |
2210 | and security, we will automatically delete the file on ###EXPIRATION###, |