Skip to content

Instantly share code, notes, and snippets.

(function($){
$(document).ready(function(){
$(document.body).on('change keyup paste', '.prefix-cart-notes', function(){
$('.cart_totals').block({
message: null,
overlayCSS: {
background: '#fff',
opacity: 0.6
}
});
@shahidbahader
shahidbahader / wcs-remove-my-subscriptions-buttons.php
Last active December 6, 2020 19:18 — forked from thenbrent/wcs-remove-my-subscriptions-buttons.php
Remove any given button from the My Subscriptions table on the My Account page. By default, only the "Change Payment Method" button is removed, but you can uncomment additional actions to remove those buttons also.
<?php
/**
* Plugin Name: Remove Subscription Action Buttons from My Account
* Plugin URI: https://gist.github.com/thenbrent/8851287/
* Description: Remove any given button from the <a href="http://docs.woothemes.com/document/subscriptions/customers-view/#section-2">My Subscriptions</a> table on the My Account page. By default, only the "Change Payment Method" button is removed, but you can uncomment additional actions to remove those buttons also.
* Author: Brent Shepherd
* Author URI:
* Version: 2.0
*/