WP HOOKS
filtrod 4.2.0

pre_get_col_charset

Args 3Plik wp-includes/class-wpdb.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the column charset value before the DB is checked.

Passing a non-null value to the filter will short-circuit checking the DB for the charset, returning that value instead.

Parametry

ParametrTypOpis
$charsetstring | null | false | \WP_ErrorThe character set to use. Default null.
$tablestringThe name of the table being checked.
$columnstringThe name of the column being checked.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'pre_get_col_charset', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii