Skip to content

mc_hide_past_dates

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

Filter whether past dates are hidden in the initial list view. Dates are only hidden when no date parameters are set in the URL.

Auto-generated Example

add_filter(
   'mc_hide_past_dates',
    function(
        bool $hide_past_dates,
        array $params
    ) {
        // Your code here.
        return $hide_past_dates;
    },
    10,
    2
);

Parameters

  • bool $hide_past_dates Whether to hide past dates.
  • array $params Current view parameters.

Files

apply_filters( 'mc_hide_past_dates', $hide_past_dates, $params )

← All Hooks

Clone this wiki locally