W3cubDocs

/WordPress

wpdb::supports_collation(): bool

Determines whether the database supports collation.

Description

Called when WordPress is generating the table scheme.

Use wpdb::has_cap( 'collation' ).

Return

bool True if collation is supported, false if not.

Source

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

Changelog

Version Description
3.5.0 Use wpdb::has_cap()
2.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wpdb/supports_collation