Skip to content

mc_upcoming_date_to

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

Custom upcoming events date end value for upcoming events lists using date parameters.

Auto-generated Example

add_filter(
   'mc_upcoming_date_to',
    function(
        string $to,
        array $args
    ) {
        // Your code here.
        return $to;
    },
    10,
    2
);

Parameters

  • string $to Ending date for this list of upcoming events in Y-m-d format.
  • array $args Associative array holding the arguments used to generate this list of upcoming events.

Returns

string List ending date.

Files

apply_filters( 'mc_upcoming_date_to', $args['to'], $args )

← All Hooks

Clone this wiki locally