WordPress at Your Fingertips
function is not described

WC_Log_Handler_Email::handle() public WC 1.0

Handle a log entry.

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

No Hooks.


true|false. False if value was not handled and true if value was handled.


$WC_Log_Handler_Email = new WC_Log_Handler_Email();
$WC_Log_Handler_Email->handle( $timestamp, $level, $message, $context );
$timestamp(int) (required)
Log timestamp.
$level(string) (required)
$message(string) (required)
Log message.
$context(array) (required)
Additional information for log handlers.

Code of WC_Log_Handler_Email::handle() WC 5.8.0

public function handle( $timestamp, $level, $message, $context ) {

	if ( $this->should_handle( $level ) ) {
		$this->add_log( $timestamp, $level, $message, $context );
		return true;

	return false;