apply_filters( ‘pre_get_table_charset’, string|WP_Error|null $charset, string $table )

In this article

Filters the table charset value before the DB is checked.

Description

Returning a non-null value from the filter will effectively short-circuit checking the DB for the charset, returning that value instead.

Parameters

$charsetstring|WP_Error|null
The character set to use, WP_Error object if it couldn’t be found. Default null.
$tablestring
The name of the table being checked.

Source

$charset = apply_filters( 'pre_get_table_charset', null, $table );

Changelog

VersionDescription
4.2.0Introduced.

User Contributed Notes

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