Automattic\WooCommerce\Internal\Admin\BlockTemplates
BlockTemplateLogger::should_handle
Should the logger handle a given level?
Метод класса: BlockTemplateLogger{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->should_handle( $level );
- $level(int) (обязательный)
- Level to check.
Код BlockTemplateLogger::should_handle() BlockTemplateLogger::should handle WC 10.4.0
private function should_handle( $level ) {
return $this->threshold_severity <= \WC_Log_Levels::get_level_severity( $level );
}