Automattic\WooCommerce\Admin
ReportCSVEmail::get_retention_period
Get how long the emailed download link stays valid, for display.
Метод класса: ReportCSVEmail{}
Хуков нет.
Возвращает
string. Human readable length of time, e.g. "1 week".
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_retention_period();
Список изменений
| С версии 11.2.0 | Введена. |
Код ReportCSVEmail::get_retention_period() ReportCSVEmail::get retention period WC 11.3.0
protected function get_retention_period() {
return human_time_diff( 0, ReportExporter::EXPORT_RETENTION_PERIOD );
}