ClassesBigCommerceAccountsNav Menu

Nav_Menu

Class Nav_Menu

Responsible for setting and filtering navigation menu items related to account pages.

  • Full name: \BigCommerce\Accounts\Nav_Menu

Methods

filter_account_menu_items

Filters the account menu items based on the page ID.

public filter_account_menu_items(object $menu_item): object

Parameters:

ParameterTypeDescription
$menu_itemobjectThe menu item to filter.

Return Value:

The filtered menu item.


setup_login_menu_item

Sets up the login/logout menu item.

public setup_login_menu_item(\WP_Post $menu_item): \WP_Post

Parameters:

ParameterTypeDescription
$menu_item\WP_PostThe menu item to modify.

Return Value:

The modified menu item.


setup_registration_menu_item

Adds the registration/signup menu item.

public setup_registration_menu_item(\WP_Post $menu_item): \WP_Post

Parameters:

ParameterTypeDescription
$menu_item\WP_PostThe menu item to modify.

Return Value:

The modified menu item.


setup_account_page_menu_item

Sets up the account-related menu item.

public setup_account_page_menu_item(\WP_Post $menu_item): \WP_Post

Parameters:

ParameterTypeDescription
$menu_item\WP_PostThe menu item to modify.

Return Value:

The modified menu item.



Automatically generated on 2025-01-21