Last active
January 10, 2017 09:52
-
-
Save lumpysimon/d67fa480180a6347c57de1bb149d0627 to your computer and use it in GitHub Desktop.
WordPress cache-busting stylesheet loader
This file contains hidden or 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
add_action( 'wp_enqueue_scripts', 'abc_styles' ); | |
function abc_styles() { | |
wp_enqueue_style( | |
'abc', | |
get_stylesheet_uri(), | |
array(), | |
filemtime( get_template_directory() . '/style.css' ) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment