Skip to content

Instantly share code, notes, and snippets.

View robert1112's full-sized avatar
🎯
Focusing

Robert C robert1112

🎯
Focusing
View GitHub Profile
add_action( 'woocommerce_product_options_general_product_data', __CLASS__ . '::subscription_pricing_fields' );
function remove_prcing(){
remove_action('woocommerce_product_options_general_product_data','WC_Subscriptions_Admin::subscription_pricing_fields' );
}
add_action('init', 'remove_prcing');
@WillBrubaker
WillBrubaker / my-subscriptions.php
Last active July 8, 2021 13:24
A template override to add a JavaScript confirmation pop-up to WooCommerce Subscriptions cancel button
<?php
/**
* My Subscriptions
*/
?>
<div class="woocommerce_account_subscriptions">
<h2><?php _e( 'My Subscriptions', 'woocommerce-subscriptions' ); ?></h2>
<?php if ( ! empty( $subscriptions ) ) : ?>
@bhubbard
bhubbard / wp-config-local-sample.php
Last active October 26, 2023 02:50
This is my Template for a wp-config file.
<?php
################################################################################
// Custom WordPress Local Config
// Use only for Development
// https://gist.github.com/bhubbard/8428583
################################################################################
/* Database Connection Info */
define('DB_NAME', '');
define('DB_USER', '');
<?php
/**
Plugin Name: GW Modify Subscription Pricing
Plugin URI: http://kovick.com/
Description: A plugin for WooCommerce + Subscription Add-on + Gravity Form Products Add-on which only adds the pricing to the signup fee rather than to the recurring fee.
Version: 1.0
Author: David Smith
Author URI: http://ounceoftalent.com
License: GPL2