Skip to content

Instantly share code, notes, and snippets.

View JLeuze's full-sized avatar

Josh Leuze JLeuze

View GitHub Profile
@krogsgard
krogsgard / enqueue-scripts.php
Created May 15, 2012 02:23
Sample enqueue scripts action and function
View enqueue-scripts.php
<?php
/*
* WordPress Sample function and action
* for loading scripts in themes
*/
// Let's hook in our function with the javascript files with the wp_enqueue_scripts hook
add_action( 'wp_enqueue_scripts', 'wpcandy_load_javascript_files' );