Skip to content

mc_heading

github-actions[bot] edited this page Jun 3, 2026 · 4 revisions

Filter the main calendar heading in multiday views.

Auto-generated Example

add_filter(
   'mc_heading',
    function(
        string $heading,
        string $format,
        string $time,
        string $template
    ) {
        // Your code here.
        return $heading;
    },
    10,
    4
);

Parameters

  • string $heading HTML heading for calendar.
  • string $format Viewed format.
  • string $time Time frame currently viewed.
  • string $template Heading template.

Returns

string

Files

apply_filters( 'mc_heading', date_i18n( $date_format, $current ), $params['format'], $params['time'] )
apply_filters( 'mc_heading', $heading, $params['format'], $params['time'], $template )

← All Hooks

Clone this wiki locally