WC_Log_Levels::get_level_label()
Get the UI label for a log level.
Method of the class: WC_Log_Levels{}
No Hooks.
Return
String
.
Usage
$result = WC_Log_Levels::get_level_label( $level );
- $level(string) (required)
- Log level, options: emergency|alert|critical|error|warning|notice|info|debug.
WC_Log_Levels::get_level_label() WC Log Levels::get level label code WC 9.4.2
public static function get_level_label( $level ) { $labels = self::get_all_level_labels(); if ( ! array_key_exists( $level, $labels ) ) { return ''; } return $labels[ $level ]; }