Created
December 7, 2014 23:07
-
-
Save dbernar1/21776351ea6e00f06065 to your computer and use it in GitHub Desktop.
Enqueueing scripts from within a plugin file
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 | |
/** | |
* Plugin Name: Plugin name | |
*/ | |
add_action( 'wp_enqueue_scripts', 'enqueue_scripts__pluginname' ); | |
function enqueue_scripts__pluginname() { | |
$jquery_location = WP_PLUGIN_URL . "/panomanager/js/jquery.js"; | |
wp_register_script('jquery', $jquery_location, true); | |
wp_enqueue_script('jquery'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment