Filter hook 'pre_get_table_charset'

in WP Core File wp-includes/class-wpdb.php at line 3211

Description

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

Occurrences

Filename Line Number
wp-includes/class-wpdb.php 3211

Parameters

Type Name Description
string|WP_Error|null $charset The character set to use, WP_Error object if it couldn't be found. Default null.
string $table The name of the table being checked.

PHP Doc

/**
		 * Filters the table charset value before the DB is checked.
		 *
		 * Returning a non-null value from the filter will effectively short-circuit
		 * checking the DB for the charset, returning that value instead.
		 *
		 * @since 4.2.0
		 *
		 * @param string|WP_Error|null $charset The character set to use, WP_Error object
		 *                                      if it couldn't be found. Default null.
		 * @param string               $table   The name of the table being checked.
		 */