Introduced "woocommerce_output_cart_shortcode_content" filter

This commit is contained in:
Claudio Sanches 2019-10-01 14:28:31 -03:00
parent b6238ce906
commit acc57ec853
1 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,10 @@ class WC_Shortcode_Cart {
* @param array $atts Shortcode attributes.
*/
public static function output( $atts ) {
if ( ! apply_filters( 'woocommerce_output_cart_shortcode_content', true ) ) {
return;
}
// Constants.
wc_maybe_define_constant( 'WOOCOMMERCE_CART', true );