apply_filters( ‘pre_get_col_charset’, string|null|false|WP_Error $charset, string $table, string $column )

In this article

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|false|WP_Error
The character set to use. Default null.
$tablestring
The name of the table being checked.
$columnstring
The name of the column being checked.

Source

$charset = apply_filters( 'pre_get_col_charset', null, $table, $column );

Changelog

VersionDescription
4.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.