wpdb::suppress_errors( bool $suppress = true )
Whether to suppress database errors.
Contents
Description Description
By default database errors are suppressed, with a simple call to this function they can be enabled.
See also See also
Parameters Parameters
- $suppress
-
(bool) (Optional) New value. Defaults to true.
Default value: true
Return Return
(bool) Old value
Source Source
File: wp-includes/wp-db.php
public function suppress_errors( $suppress = true ) { $errors = $this->suppress_errors; $this->suppress_errors = (bool) $suppress; return $errors; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |