Buttons
A customizer section that handles button label settings for various BigCommerce buttons in the WordPress Customizer.
- Full name:
\BigCommerce\Customizer\Sections\Buttons
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
NAME | public | string | ’bigcommerce_buttons’ |
ADD_TO_CART | public | string | ’bigcommerce_add_to_cart_button_label’ |
PREORDER_TO_CART | public | string | ’bigcommerce_preorder_add_to_cart_button_label’ |
BUY_NOW | public | string | ’bigcommerce_buy_now_button_label’ |
PREORDER_NOW | public | string | ’bigcommerce_preorder_now_button_label’ |
CHOOSE_OPTIONS | public | string | ’bigcommerce_choose_options_button_label’ |
VIEW_PRODUCT | public | string | ’bigcommerce_view_product_button_label’ |
Methods
register
Registers the buttons section and related controls in the WordPress Customizer.
public register(\WP_Customize_Manager $wp_customize): void
This method adds the buttons section and sets up controls for various button labels, such as “Add to Cart,” “Buy Now,” and others.
Parameters:
Parameter | Type | Description |
---|---|---|
$wp_customize | \WP_Customize_Manager | The WordPress Customizer manager instance. |
Automatically generated on 2025-01-21