Page::add_submenu_page()

Adds the submenu to the admin, and saves the hook for later use.

Contents


Source

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

	public function add_submenu_page() {
		$parent = Tribe__Settings::$parent_page;
		$title  = $this->get_page_title();

		if ( tribe( Settings::class )->use_calendar_manager() ) {
			$parent = add_query_arg( [
				'page' => $this->get_page_slug(),
			], $parent );
		}

		$page_hook = add_submenu_page(
			$parent,
			$title,
			$title,
			'edit_tribe_events',
			$this->get_page_slug(),
			[ $this, 'render' ]
		);

		$this->set_page_hook( $page_hook );
	}

Top ↑

Changelog

Changelog
Version Description
5.9.0 Introduced.