Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

wpdb::_escape_identifier_value( string $identifier ): string

Escapes an identifier value without adding the surrounding quotes.


Description

  • Permitted characters in quoted identifiers include the full Unicode Basic Multilingual Plane (BMP), except U+0000.
  • To quote the identifier itself, you need to double the character, e.g. a``b.

Top ↑

Parameters

$identifier string Required
Identifier to escape.

Top ↑

Return

string Escaped identifier.


Top ↑

Source

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

private function _escape_identifier_value( $identifier ) {
	return str_replace( '`', '``', $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.