Skip to content

Instantly share code, notes, and snippets.

@bordoni
Created October 24, 2017 18:38
Show Gist options
  • Select an option

  • Save bordoni/aca79597c28bde3845a1c6d5094e5057 to your computer and use it in GitHub Desktop.

Select an option

Save bordoni/aca79597c28bde3845a1c6d5094e5057 to your computer and use it in GitHub Desktop.
<?php
/**
* Plugin Name: Modern Tribe: Prevent Assets Cache
* Plugin URI: https://theeventscalendar.com
* Description:
* Version: 0.1.0
* Author: Gustavo Bordoni
* Author URI: http://bordoni.me
* License: GPL-3.0+
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
function addon_tribe_filter_asset_version( $version, $asset ) {
return time();
}
add_filter( 'tribe_asset_version', 'addon_tribe_filter_asset_version', 15, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment