plugin_name = $plugin_name; $this->version = $version; } /** * Register the stylesheets for the public-facing side of the site. */ public function enqueue_styles() { // PRO-DEVELOPER FIX: Dynamic Versioning. // This forces browsers and caching plugins (like SpeedyCache) to instantly load the newest CSS file. $css_file_path = TTDVR_PLUGIN_DIR . 'assets/css/frontend-style.css'; $css_version = file_exists( $css_file_path ) ? filemtime( $css_file_path ) : $this->version; wp_enqueue_style( $this->plugin_name . '-frontend', TTDVR_PLUGIN_URL . 'assets/css/frontend-style.css', array(), $css_version, 'all' ); } /** * Register the JavaScript for the public-facing side of the site. */ public function enqueue_scripts() { // If we ever need frontend JS, we load it here. } }