Hooks::change_default_events_menu_url( string|null $submenu_file )

Removes the visible submenu from the admin to prevent users from navigating directly.

This leverages the submenu_file filter as if it were an action, as it is the last action before the rendering of the menu where we can alter the URL of the Events menu item.

Parameters #


(string|null) (Required)

Top ↑

Source #

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

	public function change_default_events_menu_url( $submenu_file ) {
		$this->container->make( Page::class )->change_default_events_menu_url( $submenu_file );

Top ↑

Changelog #

Version Description
5.10.0 Introduced.