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
484      if ( ! empty( $request->user_id ) ) {
485           $locale = get_user_locale( $request->user_id );
486      } else {
487           $locale = get_locale();
488      }
489
490      $switched_locale = switch_to_locale( $locale );
491
492      /** This filter is documented in wp-includes/functions.php */
493      $expiration      = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS );
494      $expiration_date = date_i18n( get_option( 'date_format' ), time() + $expiration );
495
496      $export_file_url = get_post_meta( $request_id, '_export_file_url', true );
497      $site_name       = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
498      $site_url        = home_url();
499
500      /**
501       * Filters the recipient of the personal data export email notification.
502       * Should be used with great caution to avoid sending the data export link to wrong emails.