wpdb::show_errors( bool $show = true )

Enables showing of database errors.

Description Description

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

Top ↑

See also See also

Top ↑

Parameters Parameters


(bool) (Optional) Whether to show errors.

Default value: true

Top ↑

Return Return

(bool) Whether showing of errors was previously active.

Top ↑

Source Source

File: wp-includes/wp-db.php

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

Top ↑

Changelog Changelog

Version Description
0.71 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

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