WC_Logger::warning()
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.
Метод класса: WC_Logger{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Logger = new WC_Logger(); $WC_Logger->warning( $message, $context );
- $message(строка) (обязательный)
- Message to log.
- $context(массив)
- Log context.
По умолчанию: array()
Заметки
- Смотрите: WC_Logger::log
Код WC_Logger::warning() WC Logger::warning WC 8.7.0
public function warning( $message, $context = array() ) { $this->log( WC_Log_Levels::WARNING, $message, $context ); }