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 | |
/** | |
* Complex WordPress meta query by start and end date (custom meta fields) | |
* Intended for use on the `pre_get_posts` hook. | |
* Caution; this makes the query very slow - several seconds - so should be | |
* implemented with some form of caching. | |
* | |
* [email protected] 22.10.2019, based on code from 201 onwards | |
*/ |