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 |
---|---|
575 | if ( ! empty( $request->user_id ) ) { |
576 | $locale = get_user_locale( $request->user_id ); |
577 | } else { |
578 | $locale = get_locale(); |
579 | } |
580 |
|
581 | $switched_locale = switch_to_locale( $locale ); |
582 |
|
583 | /** This filter is documented in wp-includes/functions.php */ |
584 | $expiration = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS ); |
585 | $expiration_date = date_i18n( get_option( 'date_format' ), time() + $expiration ); |
586 |
|
587 | $exports_url = wp_privacy_exports_url(); |
588 | $export_file_name = get_post_meta( $request_id, '_export_file_name', true ); |
589 | $export_file_url = $exports_url . $export_file_name; |
590 |
|
591 | $site_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); |
592 | $site_url = home_url(); |
593 |
|