Automattic\WooCommerce\Internal\Admin\Logging
Settings::get_level_threshold
Determine the current value of the level_threshold setting.
Метод класса: Settings{}
Хуков нет.
Возвращает
Строку.
Использование
$Settings = new Settings(); $Settings->get_level_threshold(): string;
Код Settings::get_level_threshold() Settings::get level threshold WC 10.5.2
public function get_level_threshold(): string {
$key = self::PREFIX . 'level_threshold';
$threshold = Constants::get_constant( 'WC_LOG_THRESHOLD' );
if ( is_null( $threshold ) ) {
$threshold = WC_Admin_Settings::get_option( $key );
}
if ( ! WC_Log_Levels::is_valid_level( $threshold ) ) {
$threshold = self::DEFAULTS['level_threshold'];
}
return $threshold;
}