WC_Logger::get_threshold
Get the log threshold as a numerical level severity.
Метод класса: WC_Logger{}
Хуков нет.
Возвращает
int.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_threshold();
Код WC_Logger::get_threshold() WC Logger::get threshold WC 10.4.3
protected function get_threshold() {
$threshold = $this->threshold;
if ( ! WC_Log_Levels::is_valid_level( $threshold ) ) {
$threshold = LoggingUtil::get_level_threshold();
}
return WC_Log_Levels::get_level_severity( $threshold );
}