Skip to content

Instantly share code, notes, and snippets.

@jamiehs
Created February 21, 2013 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiehs/5009228 to your computer and use it in GitHub Desktop.
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
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