Filters the table charset value before the DB is checked.
Returning a non-null value from the filter will effectively short-circuit checking the DB for the charset, returning that value instead.
$charset = apply_filters( 'pre_get_table_charset', null, $table );
| Version | Description |
|---|---|
| 4.2.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_get_table_charset