wpdb::quote_identifier( string $identifier ): string

Quotes an identifier for a MySQL database, e.g. table/field names.


Parameters

$identifier string Required
Identifier to escape.

Top ↑

Return

string Escaped identifier.


Top ↑

Source

File: wp-includes/class-wpdb.php. View all references

public function quote_identifier( $identifier ) {
	return '`' . $this->_escape_identifier_value( $identifier ) . '`';
}


Top ↑

Changelog

Changelog
Version Description
6.2.0 Introduced.

Top ↑

User Contributed Notes

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