Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created May 17, 2019 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshfeck/45c94379ac1443b0b0702b7dd1c092c3 to your computer and use it in GitHub Desktop.
Save joshfeck/45c94379ac1443b0b0702b7dd1c092c3 to your computer and use it in GitHub Desktop.
Remove display of "People" when it's an EE4 event archive (category or cpt archive) page
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
add_action(
'AHEE__EED_Events_Archive__use_filterable_display_order__after_add_filters',
function(){
remove_action(
'AHEE__EED_Events_Archive__use_filterable_display_order__after_add_filters',
array('EED_People_Event_Template_Parts', 'add_people_event_details_filters'),
10
);
},
9
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment