Created
April 4, 2019 17:25
-
-
Save carmoreira/0c3f86de486b95729a8561192452f95c to your computer and use it in GitHub Desktop.
traveler theme fix to use advisor quiz
This file contains hidden or 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
| add_action('admin_enqueue_scripts','traveler_fix', 100); | |
| function traveler_fix() { | |
| if( isset( $_GET['page'] ) && $_GET['page'] === 'advqoptions' ){ | |
| wp_deregister_script('select2.js'); | |
| wp_dequeue_script('select2.js'); | |
| wp_deregister_script('select2_js'); | |
| wp_dequeue_script('select2_js'); | |
| wp_deregister_script('select2'); | |
| wp_dequeue_script('select2'); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment