Skip to content

mc_from_date

Joe Dolson edited this page May 15, 2026 · 5 revisions

Filter the calendar start date.

Auto-generated Example

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

Parameters

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

Returns

{string}

Files

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

← All Hooks

Clone this wiki locally