Automattic\WooCommerce\Admin

ReportCSVEmail::get_retention_period │ protected │ WC 11.2.0

Get how long the emailed download link stays valid, for display.

Method of the class: ReportCSVEmail{}

No Hooks.

Returns

string. Human readable length of time, e.g. "1 week".

Usage

// protected - for code of main (parent) or child class
$result = $this->get_retention_period();

Changelog

Since 11.2.0 Introduced.

ReportCSVEmail::get_retention_period() code WC 11.3.0

protected function get_retention_period() {
	return human_time_diff( 0, ReportExporter::EXPORT_RETENTION_PERIOD );
}