Automattic\WooCommerce\Utilities

LoggingUtil::get_retention_period()public staticWC 1.0

Determine the current value of the retention_period_days setting.

Method of the class: LoggingUtil{}

No Hooks.

Return

Int.

Usage

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

LoggingUtil::get_retention_period() code WC 9.4.2

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