filtrod 3.7.0
months_dropdown_results
Opis — z kodu źródłowego
Filters the 'Months' drop-down results.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$months | object[] | Array of the months drop-down query results. |
$post_type | string | The post type. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'months_dropdown_results', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'months_dropdown_results', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii