Skip to content

mc_show_months

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

Filter how many months to show in list views.

Auto-generated Example

add_filter(
   'mc_show_months',
    function(
        int $show_months,
        array $args
    ) {
        // Your code here.
        return $show_months;
    },
    10,
    2
);

Parameters

  • int $show_months Number of months to show at once.
  • array $args Current view arguments.

Returns

int

Files

apply_filters( 'mc_show_months', mc_get_option( 'show_months' ), $args )

← All Hooks

Clone this wiki locally