WordPress at a glance
function is not described

wpdb::hide_errors() public WP 0.71

Disables showing of database errors.

By default database errors are not shown.

{} It's a method of the class: wpdb{}

No Hooks.

Return

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

Usage

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

Notes

  • See: wpdb::show_errors()

Changelog

Since 0.71 Introduced.

Code of wpdb::hide_errors() WP 5.5.1

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