Last active
February 3, 2018 03:00
-
-
Save davidsword/23c5e61905600787dc8c6d991969f8b2 to your computer and use it in GitHub Desktop.
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 | |
wp_enqueue_script( | |
'your-plugin', // handle | |
plugins_url( 'your-file.js', __FILE__ ), // file | |
array( 'jquery' ), // dependencies | |
filemtime( plugin_dir_path( __FILE__ ) . '/your-file.js' ) // version: modified filemtime | |
// filemtime( get_template_directory() . '/your-file.js' ) // or this if a THEME not a PLUGIN | |
); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment