Created
May 18, 2015 19:56
-
-
Save JacobLett/a9fb6d9605d668341170 to your computer and use it in GitHub Desktop.
add css version number to WordPress enqued style - Add to functions.php
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
// Adds version to style sheet | |
// Source - Jason https://wordpress.org/support/topic/add-version-number-to-stylecss-in-custom-theme | |
function my_wp_default_styles($styles) | |
{ | |
//use release date for version | |
$styles->default_version = "20130711"; | |
} | |
add_action("wp_default_styles", "my_wp_default_styles"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment