wpdb::show_errors( bool $show = true )
Enables showing of database errors.
Contents
Description Description
This function should be used only to enable showing of errors. wpdb::hide_errors() should be used instead for hiding of errors. However, this function can be used to enable and disable showing of database errors.
See also See also
Parameters Parameters
- $show
-
(bool) (Optional) Whether to show or hide errors
Default value: true
Return Return
(bool) Old value for showing errors.
Source Source
File: wp-includes/wp-db.php
public function show_errors( $show = true ) {
$errors = $this->show_errors;
$this->show_errors = $show;
return $errors;
}
Expand full source code Collapse full source code View on Trac
Changelog Changelog
| Version | Description |
|---|---|
| 0.71 | Introduced. |