WC_Shop_Customizer
in package
WC_Shop_Customizer class.
Table of Contents
- __construct() : mixed
- Constructor.
- add_checkout_section() : mixed
- Checkout section.
- add_frontend_scripts() : mixed
- Frontend CSS styles.
- add_product_catalog_section() : mixed
- Product catalog section.
- add_scripts() : mixed
- Scripts to improve our form.
- add_sections() : mixed
- Add settings to the customizer.
- add_styles() : mixed
- CSS styles to disable the Checkout section, when the default checkout page contains the Checkout block, and to enhance form visuals.
- enqueue_scripts() : mixed
- Enqueue scripts for the customizer.
- has_privacy_policy_page_id() : bool
- Whether or not a page has been chose for the privacy policy.
- has_terms_and_conditions_page_id() : bool
- Whether or not a page has been chose for the terms and conditions.
- sanitize_archive_display() : string
- Sanitize the shop page & category display setting.
- sanitize_checkout_field_display() : string
- Sanitize field display.
- sanitize_default_catalog_orderby() : string
- Sanitize the catalog orderby setting.
- add_product_images_section() : mixed
- Product images section.
- add_store_notice_section() : mixed
- Store notice section.
- has_block_checkout() : bool
- Weather or not the checkout page contains the Checkout block.
Methods
__construct()
Constructor.
public
__construct() : mixed
Return values
mixed —add_checkout_section()
Checkout section.
public
add_checkout_section(WP_Customize_Manager $wp_customize) : mixed
Parameters
- $wp_customize : WP_Customize_Manager
-
Theme Customizer object.
Return values
mixed —add_frontend_scripts()
Frontend CSS styles.
public
add_frontend_scripts() : mixed
Return values
mixed —add_product_catalog_section()
Product catalog section.
public
add_product_catalog_section(WP_Customize_Manager $wp_customize) : mixed
Parameters
- $wp_customize : WP_Customize_Manager
-
Theme Customizer object.
Return values
mixed —add_scripts()
Scripts to improve our form.
public
add_scripts() : mixed
Return values
mixed —add_sections()
Add settings to the customizer.
public
add_sections(WP_Customize_Manager $wp_customize) : mixed
Parameters
- $wp_customize : WP_Customize_Manager
-
Theme Customizer object.
Return values
mixed —add_styles()
CSS styles to disable the Checkout section, when the default checkout page contains the Checkout block, and to enhance form visuals.
public
add_styles() : mixed
Return values
mixed —enqueue_scripts()
Enqueue scripts for the customizer.
public
enqueue_scripts() : mixed
Return values
mixed —has_privacy_policy_page_id()
Whether or not a page has been chose for the privacy policy.
public
has_privacy_policy_page_id() : bool
Return values
bool —has_terms_and_conditions_page_id()
Whether or not a page has been chose for the terms and conditions.
public
has_terms_and_conditions_page_id() : bool
Return values
bool —sanitize_archive_display()
Sanitize the shop page & category display setting.
public
sanitize_archive_display(string $value) : string
Parameters
- $value : string
-
'', 'subcategories', or 'both'.
Return values
string —sanitize_checkout_field_display()
Sanitize field display.
public
sanitize_checkout_field_display(string $value) : string
Parameters
- $value : string
-
'', 'subcategories', or 'both'.
Return values
string —sanitize_default_catalog_orderby()
Sanitize the catalog orderby setting.
public
sanitize_default_catalog_orderby(string $value) : string
Parameters
- $value : string
-
An array key from the below array.
Return values
string —add_product_images_section()
Product images section.
private
add_product_images_section(WP_Customize_Manager $wp_customize) : mixed
Parameters
- $wp_customize : WP_Customize_Manager
-
Theme Customizer object.
Return values
mixed —add_store_notice_section()
Store notice section.
private
add_store_notice_section(WP_Customize_Manager $wp_customize) : mixed
Parameters
- $wp_customize : WP_Customize_Manager
-
Theme Customizer object.
Return values
mixed —has_block_checkout()
Weather or not the checkout page contains the Checkout block.
private
has_block_checkout() : bool