Created
April 15, 2021 13:53
-
-
Save Pebblo/79429c843eef0dd34da899e295b0755d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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