WC_Logger::get_threshold()
Get the log threshold as a numerical level severity.
Method of the class: WC_Logger{}
No Hooks.
Return
Int
.
Usage
// protected - for code of main (parent) or child class $result = $this->get_threshold();
WC_Logger::get_threshold() WC Logger::get threshold code WC 9.4.2
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 ); }