W3cubDocs

/WordPress

apply_filters( 'pre_get_table_charset', string|null $charset, string $table )

Filters the table charset value before the DB is checked.

Description

Passing a non-null value to the filter will effectively short-circuit checking the DB for the charset, returning that value instead.

Parameters

$charset

(string|null) The character set to use. Default null.

$table

(string) The name of the table being checked.

Source

File: wp-includes/wp-db.php

View on Trac

Changelog

Version Description
4.2.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_get_table_charset