Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save somewherewarm-snippets/03a2e6f7b0c382aa6cdb1397f1d0e37b to your computer and use it in GitHub Desktop.
Save somewherewarm-snippets/03a2e6f7b0c382aa6cdb1397f1d0e37b to your computer and use it in GitHub Desktop.
<?php
/**
* Plugin Name: All Products for WooCommerce Subscriptions - Hide Subscription plans for specific user roles.
* Plugin URI: https://woocommerce.com/products/all-products-for-woocommerce-subscriptions/
* Description: Use this snippet to always calculate Subscription plans discounts based on the Regular product/variation price
* Version: 1.0
* Author: WooCommerce
* Author URI: https://woocommerce.com/
* Developer: Jason Kytros
*
*
* Copyright: © 2021 Jason Kytros.
* License: GNU General Public License v3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
add_filter( 'wcsatt_discount_from_regular', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment