wp_privacy_export_expiration

wp_privacy_export_expiration

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_privacy_export_expiration') is found 2 times:

  • /wp-admin/includes/privacy-tools.php line 604
    		$switched_locale = switch_to_locale( get_locale() );
    	}
    
    	/** This filter is documented in wp-includes/functions.php */
    	$expiration      = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS );
    	$expiration_date = date_i18n( get_option( 'date_format' ), time() + $expiration );
    
    	$exports_url      = wp_privacy_exports_url();
    	$export_file_name = get_post_meta( $request_id, '_export_file_name', true );
    	$export_file_url  = $exports_url . $export_file_name;
    
    
  • /wp-includes/functions.php line 8366

    * @since 4.9.6
    *
    * @param int $expiration The expiration age of the export, in seconds.
    */
    $expiration = apply_filters( ‘wp_privacy_export_expiration’, 3 * DAY_IN_SECONDS );

    foreach ( (array) $export_files as $export_file ) {
    $file_age_in_seconds = time() – filemtime( $export_file );

    if ( $expiration < $file_age_in_seconds ) { unlink( $export_file ); [/php]