-
-
Save Pebblo/9cca900c37b324cf5c9ad1de8d770d27 to your computer and use it in GitHub Desktop.
Make sure that the scripts and styles for the Multi Event Registration add-on cart are loaded on tribe_events event pages.
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 | |
function my_add_mer_scripts_everywhere() { | |
wp_enqueue_style( | |
'espresso_multi_event_registration', | |
apply_filters( | |
'FHEE__EED_Multi_Event_Registration__enqueue_scripts__event_cart_css', | |
EE_MER_URL . 'css' . DS . 'multi_event_registration.css' | |
) | |
); | |
wp_enqueue_script( | |
'espresso_multi_event_registration', | |
EE_MER_URL . 'scripts' . DS . 'multi_event_registration.js', | |
array( 'espresso_core' ), | |
EE_MER_VERSION, true | |
); | |
} | |
add_action( 'wp_enqueue_scripts', 'my_add_mer_scripts_everywhere', 11 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment