Merge pull request #24738 from woocommerce/feature/24595

Introduced "woocommerce_output_cart_shortcode_content" filter
This commit is contained in:
Vedanshu Jain 2019-10-02 15:57:42 +05:30 committed by GitHub
commit 26794c12f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 );