wpdb::show_errors( bool $show = true ): bool

Enables showing of database errors.

Description

This function should be used only to enable showing of errors.
wpdb::hide_errors() should be used instead for hiding errors.

See also

Parameters

$showbooloptional
Whether to show errors.

Default:true

Return

bool Whether showing of errors was previously active.

Source

public function show_errors( $show = true ) {
	$errors            = $this->show_errors;
	$this->show_errors = $show;
	return $errors;
}

Changelog

VersionDescription
0.71Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.