wpseek.com
A WordPress-centric search engine for devs and theme authors



pre_get_table_charset › WordPress Filter Hooks

Since4.2.0
Deprecatedn/a
apply_filters( 'pre_get_table_charset', null, $table )
Parameters: (2)
  • () charset The character set to use, WP_Error object if it couldn't be found. Default null.
    Required: Yes
  • () table The name of the table being checked.
    Required: Yes
Defined at:
Codex:

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.




Source

$charset = apply_filters( 'pre_get_table_charset', null, $table );