apply_filters( ‘get_calendar_args’, array $args )

In this article

Filter the get_calendar function arguments before they are used.

Parameters

$argsarray
Arguments for the get_calendar function.
  • initial bool
    Whether to use initial calendar names. Default true.
  • display bool
    Whether to display the calendar output. Default true.
  • post_type string
    Optional. Post type. Default 'post'.

Return

array The arguments for the get_calendar function.

Source

$args = apply_filters( 'get_calendar_args', wp_parse_args( $args, $defaults ) );

Changelog

VersionDescription
6.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.