Used By
Used By | Description |
---|---|
wp-admin/includes/schema.php: wp_get_db_schema() | Retrieve the SQL for creating database tables. |
Retrieves the database character collate.
(string) The database character collate.
File: wp-includes/wp-db.php
public function get_charset_collate() { $charset_collate = ''; if ( ! empty( $this->charset ) ) { $charset_collate = "DEFAULT CHARACTER SET $this->charset"; } if ( ! empty( $this->collate ) ) { $charset_collate .= " COLLATE $this->collate"; } return $charset_collate; }
Version | Description |
---|---|
3.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wpdb/get_charset_collate