Provider::register_events_to_series_request_key( TECEvents_ProCustom_TablesV1Seriesarray $allowed_keys = array() )
Adds the Event to Series key to the list of allowed keys for Community Events.
Contents
Parameters
- $allowed_keys
-
(<span class="TECEvents_ProCustom_TablesV1Seriesarray">TECEvents_ProCustom_TablesV1Seriesarray) (Optional) A list of post types that should be considered linked to the Event post type.
Default value: array()
Return
(TECEvents_ProCustom_TablesV1Seriesarray<string>) The filtered list of linked post types.
Source
File: src/Events_Pro/Custom_Tables/V1/Series/Provider.php
public function register_events_to_series_request_key( array $allowed_keys = [] ) {
if ( ! apply_filters( 'tec_community_events_use_series', false ) ) {
return $allowed_keys;
}
$allowed_keys[] = Relationship::EVENTS_TO_SERIES_REQUEST_KEY;
return $allowed_keys;
}
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |