Advertisement
fauzanjeg

Fix Conflict with VIKBooking plugin

Sep 27th, 2021
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1.  /** Fix Conflict with VIKBooking plugin */
  2. function fix_conflict_with_vikbooking_plugin() {
  3.     if ( isset( $_GET['page'] ) || isset( $_GET['option'] ) ) {
  4.         $page   = $_GET['page'];
  5.         $option = $_GET['option'];
  6.         if ( 'vikbooking' === $page || 'com_vikbooking' === $option ) { /* If VIKBooking plugin Page */
  7.             wp_dequeue_script( 'bootstrap' );
  8.         }
  9.     }
  10. }
  11. add_action( 'admin_enqueue_scripts', 'fix_conflict_with_vikbooking_plugin', 100 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement