Last active
April 7, 2016 09:23
-
-
Save danielpataki/d8fd1b863f4bb82be992775e519bf065 to your computer and use it in GitHub Desktop.
Deregistering Scripts
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
| wp_deregister_script( 'jquery' ); |
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
| function my_enqueued_assets() { | |
| wp_deregister_script( 'jquery' ); | |
| wp_enqueue_script( 'script-name', '//code.jquery.com/jquery-2.2.3.min.js', array(), '2.2.3' ); | |
| } | |
| add_action( 'wp_enqueue_scripts', 'my_enqueued_assets' ); |
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
| global $wp_scripts; | |
| echo '<pre>'; | |
| var_dump( $wp_scripts ); | |
| echo '</pre>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment