V
global $post;
$post->ID;
Size: a a a
V
global $post;
$post->ID;
AX
V
AX
KD
AX
AX
KD
MD
AX
MD
MK
DM
MD
function update_indicator( array $fragments ) {
$indicator = '<span class="woocommerce-mini-cart-indicator">' . intval( count( WC()->cart->cart_contents ) ) . '</span>';
$fragments['span.woocommerce-mini-cart-indicator'] = $indicator;
return $fragments;
}
add_filter( 'woocommerce_add_to_cart_fragments', [ $this, 'update_indicator' ] );
MD
MK
MK
DM
AX
MD