# Register WooCommerce Features

Hello Elementor Theme Basic

The theme registers various WooCommerce theme features (opens new window). Developers can override this using a filter hook in a child-theme.

# Hook Details

  • Hook Type: Filter Hook
  • Hook Name: hello_elementor_add_woocommerce_support
  • Default Value: true

The hook controls whether the theme should register various WooCommerce features. By default it's set to true, however developers can prevent the theme from registering various WooCommerce features.

# Usage

To prevent the theme from registering WooCommerce features, use the following hook in a child-theme functions.php file:

add_filter( 'hello_elementor_add_woocommerce_support', '__return_false' );

To register various WooCommerce theme features, use the WordPress native add_theme_support() (opens new window) function as follows:

add_theme_support( 'woocommerce' );
add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );