Skip to content

mc_month_format

github-actions[bot] edited this page May 15, 2026 · 5 revisions

Filter the date format used for previous link if the previous link is in the same year.

Auto-generated Example

add_filter(
   'mc_month_format',
    function(
        {string} $format,
        {array} $date,
        {string} $format,
        {string} $time,
        {string} $month
    ) {
        // Your code here.
        return $format;
    },
    10,
    5
);

Parameters

  • {string} $format PHP Date format string.
  • {array} $date Current date array.
  • {string} $format View format.
  • {string} $time View time frame.
  • {string} $month month used in navigation reference (next month.)

Returns

{string}

Files

apply_filters( 'mc_month_format', 'F', $date, $format, $time, $month )
apply_filters( 'mc_month_format', 'F', $date, $format, $time, $month )

← All Hooks

Clone this wiki locally