Ir al contenido

Para forzar la caché.

<?php
    $wp_theme = wp_get_theme();
    $theme_version = $wp_theme->get( 'Version' );
    function theme_styles()  { 
        wp_enqueue_style( 'main', get_template_directory_uri() . '/assets/css/main.css', array(), $theme_version);
    }

    add_action('wp_enqueue_scripts', 'theme_styles');