Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove the standard Event Espresso Events custom post type archive
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
function ee_remove_event_cpt_archive( $cpt_registry_array ) {
if ( isset( $cpt_registry_array['espresso_events'] ) ) {
$cpt_registry_array['espresso_events']['args']['has_archive'] = false;
return $cpt_registry_array;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.