pre_get_col_charset WordPress Filter Hook

The pre_get_col_charset hook is fired before the character set for a given column is determined. It allows for the character set to be overridden by a plugin.

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.


Top ↑

Parameters

$charset

(string|null)The character set to use. Default null.

$table

(string)The name of the table being checked.

$column

(string)The name of the column being checked.


Top ↑

Source

File: wp-includes/wp-db.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.