Product_Category
Handles the customization of product category settings and controls.
- Full name:
\BigCommerce\Customizer\Sections\Product_Category
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
NAME | public | string | ’bigcommerce_product_categories’ |
CHILD_ITEM_SHOW | public | string | ’bigcommerce_show_child_items’ |
CATEGORIES_IS_VISIBLE | public | string | ’bigcommerce_categories_is_visible’ |
Methods
register
Register Product Category customize section and related controls.
public register(\WP_Customize_Manager $wp_customize): void
Parameters:
Parameter | Type | Description |
---|---|---|
$wp_customize | \WP_Customize_Manager | The 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:
Parameter | Type | Description |
---|---|---|
$wp_customize | \WP_Customize_Manager | The 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:
Parameter | Type | Description |
---|---|---|
$wp_customize | \WP_Customize_Manager | The WordPress Customizer instance. |
Automatically generated on 2025-01-21