Tribe__Settings::get_parent_slug()

The “slug” used for adding submenu pages


Return #

(string)


Top ↑

Source #

File: src/Tribe/Settings.php

		public function get_parent_slug() {
			$slug = self::$parent_page;

			// if we don't have an event post type, then we can just use the tribe-common slug
			if ( 'edit.php' === $slug || 'admin.php?page=tribe-common' === $slug ) {
				$slug = self::$parent_slug;
			}

			return $slug;
		}