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<string|int, mixed>
Register customize new nav menu item types.
register_customize_nav_menu_items()  : array<string|int, mixed>
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<string|int, mixed> $item_types) : array<string|int, mixed>

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

Parameters
$item_types : array<string|int, mixed>

Menu item types.

Tags
since
3.1.0
Return values
array<string|int, mixed>

register_customize_nav_menu_items()

Register account endpoints to customize nav menu items.

public register_customize_nav_menu_items([array<string|int, mixed> $items = array() ][, string $type = '' ][, string $object = '' ], int $page) : array<string|int, mixed>
Parameters
$items : array<string|int, mixed> = 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<string|int, mixed>