WordPress at Your Fingertips
function is not described

WC_Logger::warning() public WC 1.0

Adds a warning level message.

Exceptional occurrences that are not errors.

Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.

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

No Hooks.

Return

null. Nothing.

Usage

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

Notes

Code of WC_Logger::warning() WC 5.9.0

public function warning( $message, $context = array() ) {
	$this->log( WC_Log_Levels::WARNING, $message, $context );
}