wp_privacy_export_expiration WordPress Filter Hook

The wp_privacy_export_expiration hook allows you to modify the expiration date of a user's personal data export. This hook is useful if you need to extend the expiration date for a user's export, for example if they need more time to download their data.

apply_filters( 'wp_privacy_export_expiration', int $expiration ) #

Filters the lifetime, in seconds, of a personal data export file.


Description

By default, the lifetime is 3 days. Once the file reaches that age, it will automatically be deleted by a cron job.


Top ↑

Parameters

$expiration

(int)The expiration age of the export, in seconds.


Top ↑

Source

File: wp-includes/functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.9.6Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More