WordPress at Your Fingertips
function is not described

WC_Log_Levels::is_valid_level() public WC 1.0

Validate a level string.

{} It's a method of the class: WC_Log_Levels{}

No Hooks.

Return

true|false. True if $level is a valid level.

Usage

$result = WC_Log_Levels::is_valid_level( $level );
$level(string) (required)
Log level.

Code of WC_Log_Levels::is_valid_level() WC 5.9.0

public static function is_valid_level( $level ) {
	return array_key_exists( strtolower( $level ), self::$level_to_severity );
}