apply_filters( ‘get_calendar’, string $calendar_output, array $args )

In this article

Filters the HTML calendar output.

Parameters

$calendar_outputstring
HTML output of the calendar.
$argsarray
Array of display arguments.
  • 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'.

Source

$calendar_output = apply_filters( 'get_calendar', $calendar_output, $args );

Changelog

VersionDescription
6.8.0Added the $args parameter.
3.0.0Introduced.

User Contributed Notes

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