Skip to content

Instantly share code, notes, and snippets.

View themkvz's full-sized avatar
🎯
Focusing

Ihor Mukovoz themkvz

🎯
Focusing
View GitHub Profile
@themkvz
themkvz / hooks.php
Created April 21, 2022 06:28 — forked from ashokmhrj/hooks.php
WooCommerce mnicart qty update
<?php
add_action('woocommerce_widget_shopping_cart_before_buttons','ask_woo_mini_cart_before_buttons' );
function ask_woo_mini_cart_before_buttons(){
wp_nonce_field( 'woocommerce-cart' );
?>
<div class="submit-button">
<input type="submit" class="button" name="update_cart" value="<?php esc_attr_e('Uppdatera varukorg', 'tidymerch'); ?>"/>
</div>
<?php