Skip to content

Instantly share code, notes, and snippets.

@skyshab
Created March 16, 2022 13:55
Show Gist options
  • Save skyshab/d481aa83f8feffd3e4d68d9be7b80f00 to your computer and use it in GitHub Desktop.
Save skyshab/d481aa83f8feffd3e4d68d9be7b80f00 to your computer and use it in GitHub Desktop.
Must Use plugin for fixing conflicts between bootstrap datepicker and jQuery UI datepicker.
<?php
/**
* Plugin Name: Fix for TEC datepicker conflict.
* Description: Fixes conflict between bootstrap datepicker and jQuery UI datepicker
* Author: theeventscalendar.com
* License: GNU General Public License v3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
// Basic security, prevents file from being loaded directly.
defined( 'ABSPATH' ) or die( 'Cheatin&#8217; uh?' );
add_filter( 'tribe_events_views_v2_datepicker_no_conflict', '__return_true' );
@skyshab
Copy link
Author

skyshab commented Mar 16, 2022

This file should be placed in wp-content/mu-plugins. If the mu-plugins folder does not exist, create it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment