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
/** | |
* Adds a 'Doors open' field to the event editor. | |
* | |
* Prepends the new field by filtering the current fields of the event editor | |
* using the 'wpt/event_editor/fields' hook. | |
* | |
* @param array $fields The current fields of the event editor. | |
* @param int $event_id The ID of the event being edited. | |
* @return array The new fields of the event editor. | |
*/ |
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
/** | |
* Adds venue and city filters to the default options for event listings. | |
* | |
* @param array $defaults The current defaults. | |
* @return array The defaults with venue and city added. | |
*/ | |
function add_venue_filter_to_events($defaults) { | |
$defaults['venue'] = false; | |
$defaults['city'] = false; | |
return $defaults; |
NewerOlder