Created
October 24, 2017 18:38
-
-
Save bordoni/aca79597c28bde3845a1c6d5094e5057 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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