Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created April 15, 2021 13:53
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 Pebblo/79429c843eef0dd34da899e295b0755d to your computer and use it in GitHub Desktop.
Save Pebblo/79429c843eef0dd34da899e295b0755d to your computer and use it in GitHub Desktop.
<?php //Please do not add the opening PHP tag if you already have one.
add_action( 'AHEE_event_details_before_the_content', 'tw_ee_remove_ticket_selector_from_single', 9 );
function tw_ee_remove_ticket_selector_from_single($post){
if ( is_singular() ) {
remove_filter( 'the_content', array( 'EED_Event_Single', 'event_tickets' ), EED_Event_Single::EVENT_TICKETS_PRIORITY);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment