WP HOOKS
filtrod 6.8.0

get_calendar_args

Args 1Plik wp-includes/general-template.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filter the `get_calendar` function arguments before they are used.

Parametry

ParametrTypOpis
$argsarray{ 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
}

Popularne w tej kategorii