get_calendar_args
Filter the get_calendar arguments before they are used.
Usage
add_filter( 'get_calendar_args', 'wp_kama_get_calendar_args_filter' );
/**
* Function for `get_calendar_args` filter-hook.
*
* @param array $args Optional. Arguments for the `get_calendar` function.
*
* @return array
*/
function wp_kama_get_calendar_args_filter( $args ){
// filter...
return $args;
}
- $args(array)
Optional. Arguments for the
get_calendarfunction.-
initial(true|false)
Whether to use initial calendar names.
Default: true -
display(true|false)
Whether to display the calendar output.
Default: true - post_type(string)
Optional. Post type.
Default: 'post'
-
Changelog
| Since 6.8.0 | Introduced. |
Where the hook is called
get_calendar_args
wp-includes/general-template.php 2299
$args = apply_filters( 'get_calendar_args', wp_parse_args( $args, $defaults ) );