wpdb::hide_errors()publicWP 0.71

Disables showing of database errors.

By default database errors are not shown.

Method of the class: wpdb{}

No Hooks.

Return

true|false. Whether showing of errors was previously active.

Usage

global $wpdb;
$wpdb->hide_errors();

Notes

Changelog

Since 0.71 Introduced.

wpdb::hide_errors() code WP 6.5.2

public function hide_errors() {
	$show              = $this->show_errors;
	$this->show_errors = false;
	return $show;
}