Last active
May 14, 2018 19:59
-
-
Save cliffordp/6090c1051c82130f093bfcb2b60621d5 to your computer and use it in GitHub Desktop.
The Events Calendar: Event Aggregator: Override import range default.
This file contains 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 | |
/** | |
* The Events Calendar: Event Aggregator: Override import range default. | |
* | |
* @see Tribe__Events__Aggregator__Settings::get_import_range_default() | |
* | |
* @link https://gist.github.com/cliffordp/6090c1051c82130f093bfcb2b60621d5 | |
* @link https://theeventscalendar.com/support/forums/topic/is-there-a-way-to-import-events-up-to-12-months-in-the-future-instead-of-three/ | |
*/ | |
add_filter( 'tribe_aggregator_import_range_default', 'cliff_ea_import_range_one_year' ); | |
function cliff_ea_import_range_one_year() { | |
return YEAR_IN_SECONDS; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment