Skip to content

Instantly share code, notes, and snippets.

@JacobLett
Created May 18, 2015 19:56
Show Gist options
  • Save JacobLett/a9fb6d9605d668341170 to your computer and use it in GitHub Desktop.
Save JacobLett/a9fb6d9605d668341170 to your computer and use it in GitHub Desktop.
add css version number to WordPress enqued style - Add to functions.php
// 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