Pages::get_pages()

Get registered pages.


Return

(array) $pages { Array containing the registered pages. @type array $page_id { @type string id Id to reference the page. @type array title Page title. Used in menus and breadcrumbs. @type string|null parent Parent ID. Null for new top level page. @type string path Path for this page, full path in app context; ex /analytics/report @type string capability Capability needed to access the page. @type string icon Icon. Dashicons helper class, base64-encoded SVG, or 'none'. @type int position Menu item position. @type int order Navigation item order. @type callable callback The function to be called to output the content for the page. } }


Top ↑

Source

File: src/Tribe/Admin/Pages.php

	public function get_pages() {
		/**
		 * Filters the list of registered TEC admin pages.
		 *
		 * @since 4.15.0
		 *
		 * @param array $pages {
		 *     Array containing the registered pages to be filtered
		 *
		 *     @type array $page_id {
		 *         @type string      id           Id to reference the page.
		 *         @type array       title        Page title. Used in menus and breadcrumbs.
		 *         @type string|null parent       Parent ID. Null for new top level page.
		 *         @type string      path         Path for this page, full path in app context; ex /analytics/report
		 *         @type string      capability   Capability needed to access the page.
		 *         @type string      icon         Icon. Dashicons helper class, base64-encoded SVG, or 'none'.
		 *         @type int         position     Menu item position.
		 *         @type int         order        Navigation item order.
		 *         @type callable    callback     The function to be called to output the content for the page.
		 *     }
		 * }
		 */
		$pages = apply_filters( 'tec_admin_pages', $this->pages );

		return $pages;
	}

Top ↑

Changelog

Changelog
Version Description
4.15.0 Introduced.