• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Jetpack a2z

Jetpack a2z

Jetpack a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Classes / Base_Admin_Menu

Methods

1 to 30 of 30
  • Base_Admin_Menu::add_admin_menu_separator() – Adds a menu separator.
  • Base_Admin_Menu::add_dashboard_switcher() – Adds a dashboard switcher to the list of screen meta links of the current page.
  • Base_Admin_Menu::admin_body_class() – Adds the necessary CSS class to the admin body class.
  • Base_Admin_Menu::configure_colors_for_rtl_stylesheets() – Mark the core colors stylesheets as RTL depending on the value from the environment.
  • Base_Admin_Menu::dashboard_switcher_scripts() – Adds a script to append the dashboard switcher to screen meta
  • Base_Admin_Menu::enqueue_scripts() – Enqueues scripts and styles.
  • Base_Admin_Menu::get_current_screen() – Gets the identifier of the current screen.
  • Base_Admin_Menu::get_instance() – Returns class instance.
  • Base_Admin_Menu::get_preferred_view() – Get the preferred view for the given screen.
  • Base_Admin_Menu::get_preferred_views() – Get the preferred views for all screens.
  • Base_Admin_Menu::get_submenu_item_count() – Return the number of existing submenu items under the supplied parent slug.
  • Base_Admin_Menu::handle_preferred_view_ajax() – Handles AJAX requests setting a preferred view for a given screen.
  • Base_Admin_Menu::handle_preferred_view() – Stores the preferred view for the current screen.
  • Base_Admin_Menu::has_visible_items() – Check if the menu has submenu items visible
  • Base_Admin_Menu::hide_parent_of_hidden_submenus() – Hide menus that are unauthorized and don’t have visible submenus and cases when the menu has the same slug as the first submenu item.
  • Base_Admin_Menu::hide_submenu_element() – Apply the hide-if-js CSS class to a submenu item.
  • Base_Admin_Menu::hide_submenu_page() – Hide the submenu page based on slug and return the item that was hidden.
  • Base_Admin_Menu::is_item_visible() – Check if the given item is visible or not in the admin menu.
  • Base_Admin_Menu::is_rtl() – Determines whether the current locale is right-to-left (RTL).
  • Base_Admin_Menu::override_svg_icons() – Checks for any SVG icons in the menu, and overrides things so that we can display the icon in the correct colour for the theme.
  • Base_Admin_Menu::reregister_menu_items() – Create the desired menu output.
  • Base_Admin_Menu::rest_api_init() – Sets up class properties for REST API requests.
  • Base_Admin_Menu::set_is_api_request() – Determine if the current request is from API
  • Base_Admin_Menu::set_menu_item() – Adds the given menu item in the specified position.
  • Base_Admin_Menu::set_preferred_view() – Sets the given view as preferred for the givens screen.
  • Base_Admin_Menu::set_site_icon_inline_styles() – Injects inline-styles for site icon for when third-party plugins remove enqueued stylesheets.
  • Base_Admin_Menu::should_link_to_wp_admin() – Whether to use wp-admin pages rather than Calypso.
  • Base_Admin_Menu::sort_hidden_submenus() – Sort the hidden submenus by moving them at the end of the array in order to avoid WP using them as default URLs.
  • Base_Admin_Menu::update_menu() – Updates the menu data of the given menu slug.
  • Base_Admin_Menu::update_submenus() – Updates the submenus of the given menu slug.

Extended by

Class name: Base_Admin_Menu
Plugin ref: Jetpack
Version: 11.0
Sourcefile: modules/masterbar/admin-menu/class-base-admin-menu.php
File ref: modules/masterbar/admin-menu/class-base-admin-menu.php
API Letters: A,B,M

Related

Published: 18 April 2021 | Last updated: 11 June 2022

Primary Sidebar

Information

Class name: Base_Admin_Menu
Plugin ref: Jetpack
Version: 11.0
Sourcefile: modules/masterbar/admin-menu/class-base-admin-menu.php
File ref: modules/masterbar/admin-menu/class-base-admin-menu.php
API Letters: A,B,M

Footer

Jetpack a2z
Jetpack a2z
Jetpack a2z
WordPress 6.0
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  jetpack.wp-a2z.org
© Copyright Jetpack a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites