WC_Logger::get_threshold()protectedWC 1.0

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() 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 );
}