WordPress at Your Fingertips
function is not described

WC_Log_Handler_Email::set_threshold() public WC 1.0

Set handler severity threshold.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Log_Handler_Email = new WC_Log_Handler_Email();
$WC_Log_Handler_Email->set_threshold( $level );
$level(string) (required)
emergency|alert|critical|error|warning|notice|info|debug.

Code of WC_Log_Handler_Email::set_threshold() WC 5.8.0

public function set_threshold( $level ) {
	$this->threshold = WC_Log_Levels::get_level_severity( $level );
}