wpdb::supports_collation()publicWP 2.5.0

Deprecated from version 3.5.0. It is no longer supported and can be removed in future releases. Use wpdb::has_cap() instead.

Determines whether the database supports collation.

Called when WordPress is generating the table scheme.

Use wpdb::has_cap('collation').

Method of the class: wpdb{}

No Hooks.


true|false. True if collation is supported, false if not.


global $wpdb;


Since 2.5.0 Introduced.
Deprecated since 3.5.0 Use wpdb::has_cap()

wpdb::supports_collation() code WP 6.4.1

public function supports_collation() {
	_deprecated_function( __FUNCTION__, '3.5.0', 'wpdb::has_cap( \'collation\' )' );
	return $this->has_cap( 'collation' );