filtrod 4.2.0
pre_get_col_charset
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
| Parametr | Typ | Opis |
|---|---|---|
$charset | string | null | false | \WP_Error | 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. |
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
}
// 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