wp_privacy_export_expiration

FILTER wp-includes\functions.php (ligne 8449) github
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.

Paramètres

Entrée :
3 * DAY_IN_SECONDS
Sortie :
@param int $expiration The expiration age of the export, in seconds.

Utilisation

// Modifier la valeur avec le filtre 'wp_privacy_export_expiration'
add_filter('wp_privacy_export_expiration', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(3 * DAY_IN_SECONDS) {
    // Modifier la valeur
    return 3 * DAY_IN_SECONDS;
}

Actualités

Chargement des actualités...