fbpx

Description

[wcj_cart_function] shortcode calls any WooCommerce cart `WC_Cart` class function and displays its results. For a full list of possible functions please check WC_Cart class documenation.

Args


function_name
(required) Function name to call.
Default: None

Examples

[wcj_cart_function function_name="get_cart_contents_count" before="Cart contents count: "]
Accessible through:
  • [wcj_cart_function]
Tested on WooCommerce 5.7.1 and WordPress 5.8.1