How to change the style.css?ver=5.4.1 in WordPress?
When you enqueue the style, you can use filemtime() as the version: <?php add_action(‘wp_enqueue_scripts’, ‘wpse_367594_enqueue_version’); function wpse_367594_enqueue_version() { wp_enqueue_style( // Update this to your slug. ‘style-slug’, // Update to your stylesheet URL if it’s not the main style.css. get_stylesheet_directory_uri() . ‘/style.css’, // Include dependencies here or pass an empty array. array(‘theme-dependency’), // Here’s the line … Read more