Automattic\WooCommerce\Utilities
LoggingUtil::get_retention_period
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() LoggingUtil::get retention period code WC 10.3.6
public static function get_retention_period(): int {
return wc_get_container()->get( Settings::class )->get_retention_period();
}