Created
February 21, 2013 22:59
-
-
Save jamiehs/5009228 to your computer and use it in GitHub Desktop.
Code to remove "SlideDeck JavaScript Constants" output from the page for SlideDeck 2
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
add_action( 'init', 'remove_slidedeck_javascript_constants' ); | |
function remove_slidedeck_javascript_constants() { | |
global $SlideDeckPlugin; | |
remove_action( 'admin_print_footer_scripts', array( $SlideDeckPlugin, 'print_javascript_constants' ) ); | |
remove_action( 'slidedeck_print_footer_scripts', array( $SlideDeckPlugin, 'print_javascript_constants' ) ); | |
remove_action( 'wp_print_footer_scripts', array( $SlideDeckPlugin, 'print_javascript_constants' ) ); | |
remove_action( 'wp_print_scripts', array( $SlideDeckPlugin, 'print_header_javascript_constants' ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment