Skip to content

Instantly share code, notes, and snippets.

View eighty20results's full-sized avatar

Thomas Sjølshagen eighty20results

View GitHub Profile
@eighty20results
eighty20results / pmpro_cancel_on_next_payments_date.php
Last active July 17, 2019 20:22 — forked from strangerstudios/pmpro_cancel_on_next_payments_date.php
Change PMPro membership cancellation to set expiration date to be the end of the payment period, instead of cancelling immediately (except when payment gateway is causing cancellation)
<?php
/*
Change cancellation to set expiration date et expiration date to be the end of the current month, instead of cancelling immediately.
Assumes orders are generated for each payment (i.e. your webhooks/etc are setup correctly).
*/
function e20r_stripe_delete_action( $user_id ) {
@eighty20results
eighty20results / pmpro_ld2aff.php
Last active October 23, 2018 04:12 — forked from strangerstudios/pmpro_ld2aff.php
Link Paid Memberships Pro discount codes to affiliate accounts from another plugin/service.
<?php
/*
Plugin Name: E20R - Link PMPro Discount Codes to Affiliate Accounts
Plugin URI: https://eighty20results.com/paid-memberships-pro/do-it-for-me/
Description: Link a PMPro Discount Code to the account of an affiliate
Version: 1.0
Requires at least: 4.5
Tested up to: 4.9.8
Author: Eighty / 20 Results by Wicked Strong Chicks, LLC <thomas@eighty20results.com>
Author URI: https://eighty20results.com/thomas-sjolshagen/
@eighty20results
eighty20results / pmpro_cancelled_level.php
Last active October 23, 2018 03:52 — forked from strangerstudios/pmpro_cancelled_level.php
Place a PMPro member in another level when they cancel.
<?php
/*
Plugin Name: Eighty/20 Results: Assign free level when cancelling
Plugin URI: https://eighty20results.com/paid-memberships-pro/do-it-for-me/
Description: Custom code to configure a default member level for a user who cancels
Version: 1.0
Requires at least: 4.5
Tested up to: 4.9.8
Author: Eighty / 20 Results by Wicked Strong Chicks, LLC <thomas@eighty20results.com>
Author URI: https://eighty20results.com/thomas-sjolshagen/
@eighty20results
eighty20results / pmpro-custom-tax.php
Last active January 1, 2017 22:47 — forked from strangerstudios/pmpro-customizations.php
Tax solution for British Columbia, Canada to be used with Paid Memberships Pro
<?php
/*
Plugin Name: PMPro Custom Tax
Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-customizations/
Description: Customizations for PMPro
Version: .1
Author: Stranger Studios
Author URI: http://www.strangerstudios.com
*/
/*
@eighty20results
eighty20results / pmpro_multi_payment_options.php
Last active November 18, 2016 14:30 — forked from strangerstudios/my_init_pmpro_payment_options.php
Get PMPro Pay By Check and PMPro Add PayPal Express to work together.
/*
Plugin Name: Paid Memberships Pro - Pay By Check and PayPal Express at checkout
Plugin URI: http://eighty20results.com/paid-memberships-pro/do-it-for-me/
Description: More gracefully handle Pay By Check and PayPal Express as payment options during checkout
Version: 1.0
Author: Thomas Sjoslhagen @ Paid Memberships Pro <thomas@eighty20results.com>
Author URI: http://eighty20results.com/thomas-sjolshagen
*/
/*
Get PMPro Pay By Check and PMPro Add PayPal Express to work together.