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 |
---|---|
547 | if ( ! empty( $request->user_id ) ) { |
548 | $locale = get_user_locale( $request->user_id ); |
549 | } else { |
550 | $locale = get_locale(); |
551 | } |
552 |
|
553 | $switched_locale = switch_to_locale( $locale ); |
554 |
|
555 | /** This filter is documented in wp-includes/functions.php */ |
556 | $expiration = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS ); |
557 | $expiration_date = date_i18n( get_option( 'date_format' ), time() + $expiration ); |
558 |
|
559 | $export_file_url = get_post_meta( $request_id, '_export_file_url', true ); |
560 | $site_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); |
561 | $site_url = home_url(); |
562 |
|
563 | /** |
564 | * Filters the recipient of the personal data export email notification. |
565 | * Should be used with great caution to avoid sending the data export link to wrong emails. |