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 |
|---|---|
| 2420 | if ( ! empty( $request->user_id ) ) { |
| 2421 | $locale = get_user_locale( $request->user_id ); |
| 2422 | } else { |
| 2423 | $locale = get_locale(); |
| 2424 | } |
| 2425 | |
| 2426 | $switched_locale = switch_to_locale( $locale ); |
| 2427 | |
| 2428 | /** This filter is documented in wp-includes/functions.php */ |
| 2429 | $expiration = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS ); |
| 2430 | $expiration_date = date_i18n( get_option( 'date_format' ), time() + $expiration ); |
| 2431 | |
| 2432 | /* translators: Do not translate EXPIRATION, LINK, SITENAME, SITEURL: those are placeholders. */ |
| 2433 | $email_text = __( |
| 2434 | 'Howdy, |
| 2435 | |
| 2436 | Your request for an export of personal data has been completed. You may |
| 2437 | download your personal data by clicking on the link below. For privacy |
| 2438 | and security, we will automatically delete the file on ###EXPIRATION###, |