On this page
apply_filters( 'pre_get_col_charset', string|null $charset, string $table, string $column )
Filters the column charset value before the DB is checked.
Description
Passing a non-null value to the filter will short-circuit checking the DB for the charset, returning that value instead.
Parameters
$charsetstring|null-
The character set to use. Default null.
$tablestring-
The name of the table being checked.
$columnstring-
The name of the column being checked.
Source
File: wp-includes/class-wpdb.php. View all references
$charset = apply_filters( 'pre_get_col_charset', null, $table, $column );
Related
Used By
| Used By | Description |
|---|---|
| wpdb::get_col_charset() wp-includes/class-wpdb.php | Retrieves the character set for the given column. |
Changelog
| Version | Description |
|---|---|
| 4.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_get_col_charset