WordPress at Your Fingertips
function is not described

WC_Logger::alert() public WC 1.0

Adds an alert level message.

Action must be taken immediately. Example: Entire website down, database unavailable, etc.

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

No Hooks.


null. Nothing.


$WC_Logger = new WC_Logger();
$WC_Logger->alert( $message, $context );
$message(string) (required)
Message to log.
Log context.
Default: array()


Code of WC_Logger::alert() WC 5.9.0

public function alert( $message, $context = array() ) {
	$this->log( WC_Log_Levels::ALERT, $message, $context );