wpdb::show_errors
Enables showing of database errors.
This function should be used only to enable showing of errors. wpdb::hide_errors() should be used instead for hiding errors.
Метод класса: wpdb{}
Хуков нет.
Возвращает
bool. Whether showing of errors was previously active.
Использование
global $wpdb; $wpdb->show_errors( $show );
- $show(true|false)
- Whether to show errors.
По умолчанию:true
Заметки
| Смотрите: wpdb::hide_errors() |
Список изменений
| С версии 0.71 | Введена. |
Код wpdb::show_errors() wpdb::show errors WP 7.1
public function show_errors( $show = true ) {
$errors = $this->show_errors;
$this->show_errors = $show;
return $errors;
}