Tribe__Events__Pro__Editor::add_related_events_in_editor( array $template = array() )
Filters and adds the related events block into the default classic blocks
Contents
Parameters
- $template
-
(array) (Optional)
Default value: array()
Return
(array)
Source
File: src/Tribe/Editor.php
public function add_related_events_in_editor( $template = array() ) {
$hide_related_events = tribe_get_option( 'hideRelatedEvents', false );
if ( $hide_related_events ) {
return $template;
}
$template[] = array( 'tribe/related-events' );
return $template;
}
Changelog
| Version | Description |
|---|---|
| 4.6.2 | Introduced. |