bp_settings_get_personal_data_expiration_date( WP_User_Request $request )

Fetches the expiration date for when a user request expires.


Parameters Parameters

$request

(WP_User_Request) (Required) User request object.


Top ↑

Return Return

(string) Formatted date.


Source Source

File: bp-settings/bp-settings-functions.php

function bp_settings_get_personal_data_expiration_date( WP_User_Request $request ) {
	/** This filter is documented in wp-admin/includes/file.php */
	$expiration = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS );

	return bp_format_time( $request->completed_timestamp + $expiration, true );
}


Top ↑

Changelog Changelog

Changelog
Version Description
4.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.