Tribe__Events__Pro__Editor::add_related_events_in_editor( array $template = array() )

Filters and adds the related events block into the default classic blocks


Parameters

$template

(array) (Optional)

Default value: array()


Top ↑

Return

(array)


Top ↑

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;

	}

Top ↑

Changelog

Changelog
Version Description
4.6.2 Introduced.