-
-
Save Pebblo/79cc464a6fcb31959707608f9b36c7dd to your computer and use it in GitHub Desktop.
Example of how to remove the EE4 Multi Event Modal from a specific page
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 include the opening php tag, except of course if you're starting with a blank file | |
add_action('wp_head', 'tw_ee_remove_mer_modal', 10); | |
function tw_ee_remove_mer_modal( ) { | |
if ( is_page('2022-wonder-garden-plant-sale') ) { | |
remove_action('wp_footer', ['EED_Multi_Event_Registration', 'cart_results_modal_div'], 1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment