Title: wpdb::supports_collation
Published: April 25, 2014
Last modified: May 20, 2026

---

# wpdb::supports_collation(): bool

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/wpdb/supports_collation/?output_format=md#description)
 * [Return](https://developer.wordpress.org/reference/classes/wpdb/supports_collation/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wpdb/supports_collation/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wpdb/supports_collation/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wpdb/supports_collation/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wpdb/supports_collation/?output_format=md#wp--skip-link--target)

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

Determines whether the database supports collation.

## 󠀁[Description](https://developer.wordpress.org/reference/classes/wpdb/supports_collation/?output_format=md#description)󠁿

Called when WordPress is generating the table scheme.

Use `wpdb::has_cap( 'collation' )`.

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wpdb/supports_collation/?output_format=md#return)󠁿

 bool True if collation is supported, false if not.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wpdb/supports_collation/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wpdb.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/class-wpdb.php#L4023)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/class-wpdb.php#L4023-L4026)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wpdb/supports_collation/?output_format=md#related)󠁿

| Uses | Description | 
| [wpdb::has_cap()](https://developer.wordpress.org/reference/classes/wpdb/has_cap/)`wp-includes/class-wpdb.php` |

Determines whether the database or WPDB supports a particular feature.

  | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wpdb/supports_collation/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.5.0](https://developer.wordpress.org/reference/since/3.5.0/) | Deprecated. Use [wpdb::has_cap()](https://developer.wordpress.org/reference/classes/wpdb/has_cap/) | 
| [2.5.0](https://developer.wordpress.org/reference/since/2.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwpdb%2Fsupports_collation%2F)
before being able to contribute a note or feedback.