Skip to content

mc_filter_year

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

Filter the starting year for the [my_calendar] shortcode.

Auto-generated Example

add_filter(
   'mc_filter_year',
    function(
        int $year,
        array $params
    ) {
        // Your code here.
        return $year;
    },
    10,
    2
);

Parameters

  • int $year An integer between 0 and 3000.
  • array $params Shortcode parameters.

Returns

int

Files

apply_filters( 'mc_filter_year', $shortcode_year, $params )

← All Hooks

Clone this wiki locally