Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_privacy_export_expiration

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
563      if ( ! empty( $request->user_id ) ) {
564           $locale = get_user_locale( $request->user_id );
565      } else {
566           $locale = get_locale();
567      }
568
569      $switched_locale = switch_to_locale( $locale );
570
571      /** This filter is documented in wp-includes/functions.php */
572      $expiration      = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS );
573      $expiration_date = date_i18n( get_option( 'date_format' ), time() + $expiration );
574
575      $exports_url      = wp_privacy_exports_url();
576      $export_file_name = get_post_meta( $request_id, '_export_file_name', true );
577      $export_file_url  = $exports_url . $export_file_name;
578
579      $site_name = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
580      $site_url  = home_url();
581