wp_privacy_export_expiration
Filters the lifetime, in seconds, of a personal data export file.
By default, the lifetime is 3 days. Once the file reaches that age, it will automatically be deleted by a cron job.
Usage
add_filter( 'wp_privacy_export_expiration', 'wp_kama_privacy_export_expiration_filter' ); /** * Function for `wp_privacy_export_expiration` filter-hook. * * @param int $expiration The expiration age of the export, in seconds. * * @return int */ function wp_kama_privacy_export_expiration_filter( $expiration ){ // filter... return $expiration; }
- $expiration(int)
- The expiration age of the export, in seconds.
Changelog
Since 4.9.6 | Introduced. |
Where the hook is called
wp_privacy_export_expiration
wp_privacy_export_expiration
wp-includes/functions.php 8366
$expiration = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS );
wp-admin/includes/privacy-tools.php 604
$expiration = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS );