wp_privacy_export_expiration хук-фильтр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', '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.

Список изменений

С версии 4.9.6 Введена.

Где вызывается хук

wp_privacy_delete_old_export_files()
wp_privacy_export_expiration
wp_privacy_send_personal_data_export_email()
wp_privacy_export_expiration
wp-includes/functions.php 7926
$expiration = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS );
wp-admin/includes/privacy-tools.php 606
$expiration      = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS );

Где используется хук в WordPress

Использование не найдено.