Skip to content

mc_widget_defaults

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

Customize the default values used for Upcoming and Today's events widgets.

Auto-generated Example

add_filter(
   'mc_widget_defaults',
    function( {array} ) {
        // Your code here.
        return {array};
    }
);

Parameters

  • {array} $defaults Array of values used to set up upcoming and today's events lists in widgets. Other variable names: $defaults

Returns

{array}

Files

apply_filters( 'mc_widget_defaults', $defaults )

← All Hooks

Clone this wiki locally