Automattic\WooCommerce\Utilities

LoggingUtil::get_retention_period │ public static │ WC 1.0

Determine the current value of the retention_period_days setting.

Method of the class: LoggingUtil{}

No Hooks.

Returns

int.

Usage

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

LoggingUtil::get_retention_period() code WC 11.3.0

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