W3cubDocs

/WordPress

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;
	}

Changelog

Version Description
0.71 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wpdb/hide_errors