wpseek.com
WordPress开发者和主题制作者的搜索引擎



pre_get_table_charset › WordPress过滤钩子

Since4.2.0
已弃用n/a
› apply_filters( 'pre_get_table_charset', null, $table )
参数: (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
定义在:
文档:

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 );