WordPress at a glance
filter is not described

wp_privacy_export_expiration filter-hook . WP 4.9.6

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.


add_filter( 'wp_privacy_export_expiration', 'filter_function_name_8764' );
function filter_function_name_8764( $expiration ){
	// filter...

	return $expiration;
The expiration age of the export, in seconds.

Where the hook is called

wp-includes/functions.php 6076
$expiration = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS );
wp-admin/includes/file.php 2066
$expiration      = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS );

Where the hook is used (in WP core)

Does not used.