wpdb::hide_errors() WordPress Method
The wpdb::hide_errors() function is used to turn off displaying database errors. By default, database errors are displayed on the screen if they occur. Turning off display of errors may be useful during development or debugging.
wpdb::hide_errors() #
Disables showing of database errors.
Description
By default database errors are not shown.
See also
Return
(bool) Whether showing of errors was previously active.
Source
File: wp-includes/wp-db.php
public function hide_errors() { $show = $this->show_errors; $this->show_errors = false; return $show; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
0.71 | Introduced. |