Skip to content

mc_time_html_values

Joe Dolson edited this page May 15, 2026 · 4 revisions

Filter time and date display values.

Auto-generated Example

add_filter(
   'mc_time_html_values',
    function(
        {array} $times,
        {string} $event->occur_begin,
        {string} $event->occur_end,
        {object} $event
    ) {
        // Your code here.
        return $times;
    },
    10,
    4
);

Parameters

  • {array} $times Array with formatted time_start, time_end, date_start, and date_end.
  • {string} $event->occur_begin Beginning datetime for this event.
  • {string} $event->occur_end End datetime for this event.
  • {object} $event Event object.

Returns

{array}

Files

apply_filters( 'mc_time_html_values', $times, $event->occur_begin, $event->occur_end, $event )

← All Hooks

Clone this wiki locally