Viewing 4 replies - 1 through 4 (of 4 total)
  • joneiseman

    (@joneiseman)

    Add the following code snippet to changes the scope to show all events:

    add_filter('em-content-categories_args', function($args) {
    $args['scope'] = 'all';
    return $args;
    });

    You can use the Code Snippets plugin to add this code snippet.

    Thread Starter aledef

    (@aledef)

    Hi,
    I added the filter to functions.php but it has no effect.
    I also tried to specify a priority to get earlier execution but it did not work.

    Any help?
    Thank you

    joneiseman

    (@joneiseman)

    Try the following code snippet instead:

    add_filter('em_object_get_default_search', function( $defaults ) {
    $defaults['scope'] = 'all';
    return $defaults;
    });
    Thread Starter aledef

    (@aledef)

    It works like a charm.
    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Event categories scope’ is closed to new replies.