pre_get_col_charset
apply_filters( ‘pre_get_col_charset’, string|null $charset , string $table , string $column )
过滤器::在检查DB之前过滤列字符集值。
Filter Hook: Filters the column charset value before the DB is checked.
说明(Description)
将非空值传递给筛选器将短路检查DB中的字符集,而返回该值。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$charset | (string | null) | 要使用的字符集。默认为空。 |
$table | (string) | 正在检查的表的名称。 |
$column | (string) | 正在检查的列的名称。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.2.0 | wp-includes/wp-db.php:2811 | 1 | 0 |
pre_get_col_charset 为WP2原创文章,链接:https://www.wp2.cn/hook/pre_get_col_charset/