Hooks::change_default_events_menu_url( string|null $submenu_file )
Removes the visible submenu from the admin to prevent users from navigating directly.
Topics
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 #
- $submenu_file
-
(string|null) (Required)
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 ); }
Changelog #
Version | Description |
---|---|
5.10.0 | Introduced. |