wpdb::hide_errors() public WP 0.71
Disables showing of database errors.
By default database errors are not shown.
{} It's a 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. |
Code of wpdb::hide_errors() wpdb::hide errors WP 5.6
public function hide_errors() {
$show = $this->show_errors;
$this->show_errors = false;
return $show;
}