pre_get_table_charset filter-hook . WP 4.2.0
Filters the table charset value before the DB is checked.
Passing a non-null value to the filter will effectively short-circuit checking the DB for the charset, returning that value instead.
Usage
add_filter( 'pre_get_table_charset', 'filter_function_name_9044', 10, 2 ); function filter_function_name_9044( $charset, $table ){ // filter... return $charset; }
- $charset(string)
- The character set to use.
Default: null - $table(string)
- The name of the table being checked.
Where the hook is called
pre_get_table_charset
wp-includes/wp-db.php 2555
$charset = apply_filters( 'pre_get_table_charset', null, $table );