WP_Error::has_errors
Verifies if the instance contains errors.
Метод класса: WP_Error{}
Хуков нет.
Возвращает
bool. If the instance contains errors.
Использование
$WP_Error = new WP_Error(); $WP_Error->has_errors();
Список изменений
| С версии 5.1.0 | Введена. |
Код WP_Error::has_errors() WP Error::has errors WP 7.1
public function has_errors() {
return (bool) $this->errors;
}