ClassesBigCommerceCustomizerSectionsProduct Category

Product_Category

Handles the customization of product category settings and controls.

  • Full name: \BigCommerce\Customizer\Sections\Product_Category

Constants

ConstantVisibilityTypeValue
NAMEpublicstring’bigcommerce_product_categories’
CHILD_ITEM_SHOWpublicstring’bigcommerce_show_child_items’
CATEGORIES_IS_VISIBLEpublicstring’bigcommerce_categories_is_visible’

Methods

register

Register Product Category customize section and related controls.

public register(\WP_Customize_Manager $wp_customize): void

Parameters:

ParameterTypeDescription
$wp_customize\WP_Customize_ManagerThe WordPress Customizer instance.

add_is_visible_control

Register radio box control for categories “is visible” flag.

protected add_is_visible_control(\WP_Customize_Manager $wp_customize): void

Parameters:

ParameterTypeDescription
$wp_customize\WP_Customize_ManagerThe WordPress Customizer instance.

add_sub_categories_control

Register controls for showing child items in the navigation menu.

protected add_sub_categories_control(\WP_Customize_Manager $wp_customize): void

Parameters:

ParameterTypeDescription
$wp_customize\WP_Customize_ManagerThe WordPress Customizer instance.


Automatically generated on 2025-01-21