Hooks::filter_events_properties( WP_Post $event )
Updates and modifies the properties added to the event post object by the tribe_get_event function to hide some sensitive information, if required.
Contents
Parameters
- $event
-
(WP_Post) (Required) The event post object, decorated w/ properties added by the
tribe_get_eventfunction.
Return
(WP_Post) The event post object, decorated w/ properties added by the tribe_get_event function, some of them updated to hide sensitive information, if required.
Source
File: src/Tribe/Views/V2/Hooks.php
public function filter_events_properties( $event ) {
if ( ! $event instanceof \WP_Post ) {
return $event;
}
return $this->container->make( Template\Event::class )->filter_event_properties( $event );
}
Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |