WooCommerce Code Reference

Search results

WC_Admin_Customize

WC_Admin_Customize Class.

Table of Contents

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

Methods

register_customize_nav_menu_item_types()

Register customize new nav menu item types.

public register_customize_nav_menu_item_types( $item_types : array ) : array

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

Parameters
$item_types : array

Menu item types.

Tags
since
Return values
array

register_customize_nav_menu_items()

Register account endpoints to customize nav menu items.

public register_customize_nav_menu_items( [ $items : array = array() ] [, $type : string = '' ] [, $object : string = '' ] , $page : int ) : 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
Return values
array
Back to the top