Skip to content

Instantly share code, notes, and snippets.

@jahir07
Forked from hasinhayder/enq-css.php
Last active August 29, 2015 14:22
Show Gist options
  • Save jahir07/9f557cf63a03bb62ad8e to your computer and use it in GitHub Desktop.
Save jahir07/9f557cf63a03bb62ad8e to your computer and use it in GitHub Desktop.
#!/usr/bin/env php
<?php
foreach(glob("*.css") as $css){
echo "wp_enqueue_style( 'wptheme-{$css}', get_template_directory_uri().'/css/{$css}',null,'1.0');\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment