Warning: This method has been deprecated. Use wpdb::has_cap() instead.

wpdb::supports_collation() WordPress Method

The wpdb::supports_collation() method is used to check if a database supports collation. This is useful for checking if a database can be used for a specific purpose.

wpdb::supports_collation() #

Determines whether the database supports collation.


Description

Called when WordPress is generating the table scheme.

Use wpdb::has_cap( 'collation' ).


Top ↑

Return

(bool) True if collation is supported, false if not.


Top ↑

Source

File: wp-includes/wp-db.php

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


Top ↑

Changelog

Changelog
VersionDescription
3.5.0Use wpdb::has_cap()
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.