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 |
---|---|
597 | if ( ! empty( $request->user_id ) ) { |
598 | $locale = get_user_locale( $request->user_id ); |
599 | } else { |
600 | $locale = get_locale(); |
601 | } |
602 |
|
603 | $switched_locale = switch_to_locale( $locale ); |
604 |
|
605 | /** This filter is documented in wp-includes/functions.php */ |
606 | $expiration = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS ); |
607 | $expiration_date = date_i18n( get_option( 'date_format' ), time() + $expiration ); |
608 |
|
609 | $exports_url = wp_privacy_exports_url(); |
610 | $export_file_name = get_post_meta( $request_id, '_export_file_name', true ); |
611 | $export_file_url = $exports_url . $export_file_name; |
612 |
|
613 | $site_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); |
614 | $site_url = home_url(); |
615 |
|