Automattic\WooCommerce\Utilities

LoggingUtil::get_retention_period()public staticWC 1.0

Determine the current value of the retention_period_days setting.

Метод класса: LoggingUtil{}

Хуков нет.

Возвращает

int.

Использование

$result = LoggingUtil::get_retention_period(): int;

Код LoggingUtil::get_retention_period() WC 9.8.5

public static function get_retention_period(): int {
	return wc_get_container()->get( Settings::class )->get_retention_period();
}