Buttons

A customizer section that handles button label settings for various BigCommerce buttons in the WordPress Customizer.

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

Constants

ConstantVisibilityTypeValue
NAMEpublicstring’bigcommerce_buttons’
ADD_TO_CARTpublicstring’bigcommerce_add_to_cart_button_label’
PREORDER_TO_CARTpublicstring’bigcommerce_preorder_add_to_cart_button_label’
BUY_NOWpublicstring’bigcommerce_buy_now_button_label’
PREORDER_NOWpublicstring’bigcommerce_preorder_now_button_label’
CHOOSE_OPTIONSpublicstring’bigcommerce_choose_options_button_label’
VIEW_PRODUCTpublicstring’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:

ParameterTypeDescription
$wp_customize\WP_Customize_ManagerThe WordPress Customizer manager instance.


Automatically generated on 2025-01-21