Styles not showing up in WordPress site

I usually append a random number to the end of the stylesheet while in development mode, if I upload the file to the production server I manually change the version number like this:


// Version - to prevent caching
$version = mt_rand(1000, 100000);
// $version = 1.0.0.0;

// Enqueue CSS
function wpb_enqueue_styles() {
    global $version;
    $plugin_dir = plugin_dir_url( __FILE__ );
    wp_enqueue_style( 'wpb-stripe-style', $plugin_dir . 'includes/css/style.css', [], $version );
}
add_action( 'wp_enqueue_scripts', 'wpb_enqueue_styles' );

// Enqueue JS
function wpb_enqueue_scripts() {
    global $version;
    $plugin_dir = plugin_dir_url( __FILE__ );
    wp_enqueue_script( 'wpb-stripe-script', $plugin_dir . 'includes/js/script.js', ['jquery'], $version );
}
add_action( 'wp_enqueue_scripts', 'wpb_enqueue_scripts' );

Or, you can use this method that checkes the file timesamp
Enqueue the Stylesheet with Versioning:
In WordPress, you typically enqueue stylesheets in your theme’s functions.php file. You can add a version parameter there. Here’s an example:

function wpb_enqueue_styles() {
    wp_enqueue_style('my-custom-style', get_template_directory_uri() . '/includes/css/style.css', array(), filemtime(get_template_directory() . '/includes/css/style.css'));
}
add_action('wp_enqueue_scripts', 'wpb_enqueue_styles');

OR
Manually Adding Versioning:
If you’re not enqueuing the stylesheet through WordPress functions but including it directly in the HTML (which is less common and not recommended in WordPress), you can manually add a version:

<link rel="stylesheet" href="/includes/css/style.css?v=1.0.0">

In the ladder I manually change the 1.0.0 to 1.0.1 when I push to the production server.

deneme bonusudeneme bonusu veren sitelerpulibet girişOnwin Güncel Giriştürkçe altyazılı pornocanlı bahis casino