Hooks::set_shortcode_to_display()

Set the tribe_events shortcode to display when it’s in the dashboard and on the manager page.

Contents


Source

File: src/Tribe/Admin/Manager/Hooks.php

	public function set_shortcode_to_display() {
		if ( ! is_admin() ) {
			return;
		}

		$is_screen = $this->container->make( Page::class )->is_current_screen( get_current_screen() );

		if ( ! $is_screen ) {
			return;
		}

		add_filter( 'tribe_events_shortcode_tribe_events_should_display', '__return_true' );
	}

Top ↑

Changelog

Changelog
Version Description
5.9.0 Introduced.