wpdb::quote_identifier( string $identifier ): string

In this article

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

Parameters

$identifierstringrequired
Identifier to escape.

Return

string Escaped identifier.

Source

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

Changelog

VersionDescription
6.2.0Introduced.

User Contributed Notes

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