mc_filter_year - joedolson/my-calendar GitHub Wiki
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$yearAn integer between 0 and 3000.array$paramsShortcode parameters.
Returns
int
Files
apply_filters( 'mc_filter_year', $shortcode_year, $params )