WooCommerce Code Reference

WC_Admin_Customize

WC_Admin_Customize Class.

Table of Contents

__construct()  : mixed
Initialize customize actions.
register_customize_nav_menu_item_types()  : array
Register customize new nav menu item types.
register_customize_nav_menu_items()  : array
Register account endpoints to customize nav menu items.

Methods

register_customize_nav_menu_item_types()

Register customize new nav menu item types.

public register_customize_nav_menu_item_types(array $item_types) : array

This will register WooCommerce account endpoints as a nav menu item type.

Parameters
$item_types : array

Menu item types.

Tags
since
3.1.0
Return values
array

register_customize_nav_menu_items()

Register account endpoints to customize nav menu items.

public register_customize_nav_menu_items([array $items = array() ][, string $type = '' ][, string $object = '' ], int $page) : array
Parameters
$items : array = array()

List of nav menu items.

$type : string = ''

Nav menu type.

$object : string = ''

Nav menu object.

$page : int

Page number.

Tags
since
3.1.0
Return values
array