Skip to content

Instantly share code, notes, and snippets.

@Ataurr
Forked from hasinhayder/enq-js.php
Last active August 29, 2015 14:09
Show Gist options
  • Save Ataurr/7a2dd3d7214421bfeb63 to your computer and use it in GitHub Desktop.
Save Ataurr/7a2dd3d7214421bfeb63 to your computer and use it in GitHub Desktop.
#!/usr/bin/env php
<?php
foreach(glob("*.js") as $js){
echo "wp_enqueue_script( 'xs-{$js}', XS_SCRIPTS .'/{$js}', array('jquery'), XS_VERSION, true);\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment