WC_Admin_Menus
in package
WC_Admin_Menus Class.
Table of Contents
- __construct() : mixed
- Hook in tabs.
- add_nav_menu_meta_boxes() : mixed
- Add custom nav meta box.
- addons_menu() : mixed
- Addons menu item.
- addons_page() : mixed
- Init the addons page.
- admin_bar_menus() : mixed
- Add the "Visit Store" link in admin bar main menu.
- admin_menu() : mixed
- Add menu items.
- attributes_page() : mixed
- Init the attributes page.
- custom_menu_order() : bool
- Custom menu order.
- menu_highlight() : mixed
- Highlights the correct top level admin menu item for post type add screens.
- menu_order() : array
- Reorder the WC menu items in admin.
- menu_order_count() : mixed
- Adds the order processing count to the menu.
- nav_menu_links() : mixed
- Output menu links.
- reports_menu() : mixed
- Add menu item.
- reports_page() : mixed
- Init the reports page.
- save_settings() : void
- Handle saving of settings.
- set_screen_option() : mixed
- Validate screen options on update.
- settings_menu() : mixed
- Add menu item.
- settings_page() : mixed
- Init the settings page.
- settings_page_init() : mixed
- Loads gateways and shipping methods into memory for use within settings.
- status_menu() : mixed
- Add menu item.
- status_page() : mixed
- Init the status page.
Methods
__construct()
Hook in tabs.
public
__construct() : mixed
Return values
mixedadd_nav_menu_meta_boxes()
Add custom nav meta box.
public
add_nav_menu_meta_boxes() : mixed
Adapted from http://www.johnmorrisonline.com/how-to-add-a-fully-functional-custom-meta-box-to-wordpress-navigation-menus/.
Return values
mixedaddons_menu()
Addons menu item.
public
addons_menu() : mixed
Return values
mixedaddons_page()
Init the addons page.
public
addons_page() : mixed
Return values
mixedadmin_bar_menus()
Add the "Visit Store" link in admin bar main menu.
public
admin_bar_menus(WP_Admin_Bar $wp_admin_bar) : mixed
Parameters
- $wp_admin_bar : WP_Admin_Bar
-
Admin bar instance.
Tags
Return values
mixedadmin_menu()
Add menu items.
public
admin_menu() : mixed
Return values
mixedattributes_page()
Init the attributes page.
public
attributes_page() : mixed
Return values
mixedcustom_menu_order()
Custom menu order.
public
custom_menu_order(bool $enabled) : bool
Parameters
- $enabled : bool
-
Whether custom menu ordering is already enabled.
Return values
boolmenu_highlight()
Highlights the correct top level admin menu item for post type add screens.
public
menu_highlight() : mixed
Return values
mixedmenu_order()
Reorder the WC menu items in admin.
public
menu_order(int $menu_order) : array
Parameters
- $menu_order : int
-
Menu order.
Return values
arraymenu_order_count()
Adds the order processing count to the menu.
public
menu_order_count() : mixed
Return values
mixednav_menu_links()
Output menu links.
public
nav_menu_links() : mixed
Return values
mixedreports_menu()
Add menu item.
public
reports_menu() : mixed
Return values
mixedreports_page()
Init the reports page.
public
reports_page() : mixed
Return values
mixedsave_settings()
Handle saving of settings.
public
save_settings() : void
set_screen_option()
Validate screen options on update.
public
set_screen_option(bool|int $status, string $option, int $value) : mixed
Parameters
- $status : bool|int
-
Screen option value. Default false to skip.
- $option : string
-
The option name.
- $value : int
-
The number of rows to use.
Return values
mixedsettings_menu()
Add menu item.
public
settings_menu() : mixed
Return values
mixedsettings_page()
Init the settings page.
public
settings_page() : mixed
Return values
mixedsettings_page_init()
Loads gateways and shipping methods into memory for use within settings.
public
settings_page_init() : mixed
Return values
mixedstatus_menu()
Add menu item.
public
status_menu() : mixed
Return values
mixedstatus_page()
Init the status page.
public
status_page() : mixed