Util
Utility functions for WooCommerce Express Shop Page.
Tags
Table of Contents
- convert_settings_from_wc_format() : mixed
- Convert settings from WooCommerce
- get_asset_url() : mixed
- Get assets URL
- has_wc_shortcode() : mixed
- Check if the page content contains any built in WooCommerce shortcode
- is_elementor_page() : bool
- Check if the current page is built with Elementor
- is_wc_category_page() : bool
- Check if the current page is a WooCommerce category page
- is_wc_shop_page() : bool
- Check if the current page is a WooCommerce shop page
Methods
convert_settings_from_wc_format()
Convert settings from WooCommerce
public
static convert_settings_from_wc_format(array<string|int, mixed> $settings) : mixed
Parameters
- $settings : array<string|int, mixed>
Return values
mixed —get_asset_url()
Get assets URL
public
static get_asset_url([string $path = '' ]) : mixed
Parameters
- $path : string = ''
-
return string $url;
Return values
mixed —has_wc_shortcode()
Check if the page content contains any built in WooCommerce shortcode
public
static has_wc_shortcode() : mixed
Return values
mixed —is_elementor_page()
Check if the current page is built with Elementor
public
static is_elementor_page() : bool
Return values
bool —is_wc_category_page()
Check if the current page is a WooCommerce category page
public
static is_wc_category_page() : bool
Return values
bool —is_wc_shop_page()
Check if the current page is a WooCommerce shop page
public
static is_wc_shop_page() : bool