Last active
December 20, 2015 05:19
-
-
Save scottlyttle/6077661 to your computer and use it in GitHub Desktop.
Revisions
-
scottlyttle revised this gist
Jul 25, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ add_action( 'wp_enqueue_scripts', 'deregister_cf7_javascript', 15 ); function deregister_cf7_javascript() { if ( !is_page(15) ) { wp_deregister_script( 'contact-form-7' ); } } add_action( 'wp_enqueue_styles', 'deregister_cf7_styles', 15 ); function deregister_cf7_styles() { if ( !is_page(15) ) { wp_deregister_style( 'contact-form-7' ); -
scottlyttle created this gist
Jul 25, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ add_action( 'wp_print_scripts', 'deregister_cf7_javascript', 15 ); function deregister_cf7_javascript() { if ( !is_page(15) ) { wp_deregister_script( 'contact-form-7' ); } } add_action( 'wp_print_styles', 'deregister_cf7_styles', 15 ); function deregister_cf7_styles() { if ( !is_page(15) ) { wp_deregister_style( 'contact-form-7' ); } }