Last active
August 29, 2015 14:01
-
-
Save dbushell/9afdcb229f15a3bbb0a4 to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
add_action('ninja_forms_display_js', 'dbushell__ninja_forms_display_js'); | |
add_action('ninja_forms_display_css', 'dbushell__ninja_forms_display_css'); | |
function dbushell__ninja_forms_display_js() | |
{ | |
if (is_admin()) { | |
return; | |
} | |
wp_deregister_script('jquery-ui-datepicker'); | |
wp_deregister_script('jquery-qtip'); | |
wp_deregister_script('jquery-maskedinput'); | |
wp_deregister_script('jquery-autonumeric'); | |
wp_deregister_script('jquery-char-input-limit'); | |
wp_deregister_script('jquery-rating'); | |
wp_deregister_script('ninja-forms-display'); | |
wp_deregister_script('jquery-form'); | |
wp_deregister_script('jquery'); | |
} | |
function dbushell__ninja_forms_display_css() | |
{ | |
if (is_admin()) { | |
return; | |
} | |
wp_dequeue_style('ninja-forms-display'); | |
wp_dequeue_style('jquery-qtip'); | |
wp_dequeue_style('jquery-rating'); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment