Skip to content

mc_to_date

github-actions[bot] edited this page Jun 21, 2026 · 5 revisions

Filter the calendar end date.

Auto-generated Example

add_filter(
   'mc_to_date',
    function(
        string $to,
        string $from,
        array $params
    ) {
        // Your code here.
        return $to;
    },
    10,
    3
);

Parameters

  • string $to End date of events shown in main calendar shortcode in format yyyy-mm-dd.
  • string $from Starting date of current view in format yyyy-mm-dd.
  • array $params Calendar view parameters.

Returns

string

Files

apply_filters( 'mc_to_date', $dates['to'], $dates['from'], $params )

← All Hooks

Clone this wiki locally