wpdb::quote_identifier
Quotes an identifier for a MySQL database, e.g. table/field names.
Method of the class: wpdb{}
No Hooks.
Returns
String
. Escaped identifier.
Usage
global $wpdb; $wpdb->quote_identifier( $identifier );
- $identifier(string) (required)
- Identifier to escape.
Changelog
Since 6.2.0 | Introduced. |
wpdb::quote_identifier() wpdb::quote identifier code WP 6.8.1
public function quote_identifier( $identifier ) { return '`' . $this->_escape_identifier_value( $identifier ) . '`'; }