filtrod 2.2.0
getarchives_where
Opis — z kodu źródłowego
Filters the SQL WHERE clause for retrieving archives.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$sql_where | string | Portion of SQL query containing the WHERE clause. |
$parsed_args | array | An array of default arguments. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'getarchives_where', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'getarchives_where', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii