WP_Error::has_errors() public WP 5.1.0
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 5.6.2
public function has_errors() {
if ( ! empty( $this->errors ) ) {
return true;
}
return false;
}