wordpress forse css styles version

Sometime css files version need to be set so update to be forced on all users which are visiting the site

This can be done very easy in wordpress just need to add those lines in function.php of the theme

function my_wp_default_styles($styles)
{
	//use release date for version
	$styles->default_version = "20160714";
}
add_action("wp_default_styles", "my_wp_default_styles");
С етикет: , , , ,
Публикувано в wordpress
Един коментар по “wordpress forse css styles version
  1. Thanks. Благодаря!

Вашият коментар

Вашият имейл адрес няма да бъде публикуван.

*