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 )
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
.
Parameters
- $identifier
-
(Required) Identifier to escape.
Return
(string) Escaped identifier.
Source
File: wp-includes/class-wpdb.php
private function _escape_identifier_value( $identifier ) {
return str_replace( '`', '``', $identifier );
}
Changelog
Version | Description |
---|---|
6.2.0 | Introduced. |