pre_get_table_charset WordPress Filter Hook
The pre_get_table_charset hook is triggered before retrieving the table charset. It can be used to override the default charset for the database table.
apply_filters( 'pre_get_table_charset', string|WP_Error|null $charset , string $table ) #
Filters the table charset value before the DB is checked.
Description
Returning a non-null value from the filter will effectively short-circuit checking the DB for the charset, returning that value instead.
Parameters
Source
File: wp-includes/wp-db.php
Changelog
Version | Description |
---|---|
4.2.0 | Introduced. |