WordPress at Your Fingertips
function is not described

WC_Log_Levels::get_severity_level() public WC 1.0

Translate severity integer to level string.

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

No Hooks.


true|false|String. False if not recognized. Otherwise string representation of level.


$result = WC_Log_Levels::get_severity_level( $severity );
$severity(int) (required)
Severity level.

Code of WC_Log_Levels::get_severity_level() WC 5.9.0

public static function get_severity_level( $severity ) {
	if ( ! array_key_exists( $severity, self::$severity_to_level ) ) {
		return false;
	return self::$severity_to_level[ $severity ];