Automattic\WooCommerce\Utilities
LoggingUtil::get_retention_period()
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() 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(); }