apply_filters( 'get_calendar_args', array $args )
- Since
- 6.8.0
Filter the get_calendar function arguments before they are used.
Parameters
$argsarray- { Optional. Arguments for the get_calendar 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'.}
$initialbool
Whether to use initial calendar names. Default true.
$displaybool
Whether to display the calendar output. Default true.
$post_typestring
Optional. Post type. Default 'post'.
Fired at · 1
wp-includes/general-template.php:2310get_calendar()
Source
View on Trac ↗View on GitHub ↗
2304 *2305 * @type bool $initial Whether to use initial calendar names. Default true.2306 * @type bool $display Whether to display the calendar output. Default true.2307 * @type string $post_type Optional. Post type. Default 'post'.2308 * }2309 */2310 $args = apply_filters( 'get_calendar_args', wp_parse_args( $args, $defaults ) );2311 2312 if ( ! post_type_exists( $args['post_type'] ) ) {2313 $args['post_type'] = 'post';2314 }2315 2316 $w = 0;
History
Introduced in 6.8.0. Unchanged from 6.8.8 through 7.1.0.
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Signature, return type and hooks compared across 4 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.