wpdb::hide_errors()
Disables showing of database errors.
By default database errors are not shown.
Method of the class: wpdb{}
No Hooks.
Return
true|false
. Whether showing of errors was previously active.
Usage
global $wpdb; $wpdb->hide_errors();
Notes
- See: wpdb::show_errors()
Changelog
Since 0.71 | Introduced. |
wpdb::hide_errors() wpdb::hide errors code WP 6.6.2
public function hide_errors() { $show = $this->show_errors; $this->show_errors = false; return $show; }