Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Remove Ajax from The Events Calendar Pagination on Month, List, and Day Views
- * @3.7
- *
- */
- function events_calendar_remove_scripts() {
- if (!is_admin() && !in_array( $GLOBALS['pagenow'], array( 'wp-login.php', 'wp-register.php' ) ) ) {
- wp_dequeue_script( 'tribe-events-calendar');
- wp_dequeue_script( 'tribe-events-list');
- wp_dequeue_script( 'tribe-events-ajax-day');
- }}
- add_action('wp_print_scripts', 'events_calendar_remove_scripts' , 10);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement