fauzanjeg

Fix Conflict with Gravity Forms plugin

Sep 21st, 2021 (edited)
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. /** Fix Conflict with Gravity Forms plugin */
  2. function fix_conflict_with_gravity_forms_plugin() {
  3.     if ( isset( $_GET['page'] ) ) {
  4.         $page =  $_GET['page'];
  5.         $page = explode( '_', $page );
  6.         if ( 'gf' === $page[0] ) { /* If Gravity Forms plugin Page */
  7.             wp_dequeue_script( 'bootstrap' );
  8.         }
  9.     }
  10. }
  11. add_action( 'admin_enqueue_scripts', 'fix_conflict_with_gravity_forms_plugin', 100 );
Add Comment
Please, Sign In to add comment