wpdb::quote_identifier
Quotes an identifier such as a table or field name.
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.9.1
public function quote_identifier( $identifier ) {
return '`' . $this->_escape_identifier_value( $identifier ) . '`';
}