WP_Error::has_errors()
Verifies if the instance contains errors.
Метод класса: WP_Error{}
Хуков нет.
Возвращает
true|false
. 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 6.1.1
public function has_errors() { if ( ! empty( $this->errors ) ) { return true; } return false; }