filtrod 6.8.0
get_calendar_args
Opis — z kodu źródłowego
Filter the `get_calendar` function arguments before they are used.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$args | array | { Optional. Arguments for the <code>get_calendar</code> function. @type bool $initial Whether to use initial calendar names. Default true. @type bool $display Whether to display the calendar output. Default true. @type string $post_type Optional. Post type. Default 'post'. } |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'get_calendar_args', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'get_calendar_args', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii