Skip to content

Commit

Permalink
fixed : Using Tickets add-on for The Events Calendar breaks website. f…
Browse files Browse the repository at this point in the history
…ixes #1907

Removed a broken compatibility code with The Events Calendar plugin
  • Loading branch information
nikeo committed Sep 10, 2021
1 parent 92799b9 commit 2da2b20
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/class-fire-plugins_compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -768,11 +768,6 @@ private function czr_fn_set_event_tickets_compat() {
function czr_fn_et_ticket_fix_custom_page( $what ) {
return str_replace( __( 'Custom Page Example', 'customizr' ), 'custom-page.php', $what );
}

add_filter( 'czr_is_list_of_posts', 'czr_fn_et_ticket_disable_post_list' );
function czr_fn_et_ticket_disable_post_list( $bool ) {
return function_exists( 'tribe' ) && tribe( 'tickets.attendee_registration' )->is_on_page() ? false : $bool;
}
}//end event-tickets compat


Expand Down

0 comments on commit 2da2b20

Please sign in to comment.