Skip to content

Instantly share code, notes, and snippets.

Thomas Sjolshagen eighty20results

Block or report user

Report or block eighty20results

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@eighty20results
eighty20results / e20r-pmpro-powerpress-feed-protection.php
Last active Apr 23, 2019
Protect PowerPress Podcast Feeds, but let members access them with their custom RSS key. Requires both BluBrry PowerPress plugin, and the PMPro Member RSS add-on.
View e20r-pmpro-powerpress-feed-protection.php
<?php
/*
Plugin Name: E20R - PowerPress Podcast Feed Protection for Paid Memberships Pro
Plugin URI: https://eighty20results.com/paid-memberships-pro/do-it-for-me/
Description: Verify PMPro RSS Member Key when accessing PowerPress feed
Version: 1.2
Author: Eighty / 20 Results by Wicked Strong Chicks, LLC <thomas@eighty20results.com>
Author URI: https://eighty20results.com/thomas-sjolshagen/
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
License: GPLv2 or later
@eighty20results
eighty20results / pmpro-append-to-end.php
Created Oct 10, 2016
When user renews membership we append the duration to their current enddate
View pmpro-append-to-end.php
<?php
/*
Plugin Name: Paid Memberships Pro: Extend membership by new level duration
Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-customizations/
Description: On change of level, modify the end date to add the new level's time
Version: 1.0
Requires: 4.5.3
Author: Thomas Sjolshagen <thomas@eighty20results.com>
Author URI: http://www.eighty20results.com/thomas-sjolshagen/
License: GPL2
@eighty20results
eighty20results / oeis-substitution-variables.php
Last active Oct 25, 2018
Add custom member application fields as substitution variables for email messages from the OEIS Member Application Management
View oeis-substitution-variables.php
<?php
/*
Plugin Name: OEIS Member Application Management: Custom Substitution Variables
Plugin URI: https://eighty20results.com/paid-memberships-pro/do-it-for-me/
Description: Add custom, pre-defined Register Helper fields, as email substitution variables for the messages sent by the OEIS Member Application Management plugin
Version: 1.1
Requires at least: 4.9
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_ld2aff.php
Last active Oct 23, 2018 — forked from strangerstudios/pmpro_ld2aff.php
Link Paid Memberships Pro discount codes to affiliate accounts from another plugin/service.
View pmpro_ld2aff.php
<?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 Oct 23, 2018 — forked from strangerstudios/pmpro_cancelled_level.php
Place a PMPro member in another level when they cancel.
View pmpro_cancelled_level.php
<?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 / bulk-update.sql
Created Sep 17, 2018
Bulk update membership levels in Paid Memberships Pro
View bulk-update.sql
UPDATE wp_pmpro_memberships_users SET 'membership_id' = 2 WHERE status = 'active' AND 'membership_id' = 1;
@eighty20results
eighty20results / uj-customizations.php
Created May 19, 2018
Custom fields per support topic
View uj-customizations.php
<?php
/*
Plugin Name: PMPro Customizations: Register Helper Fields
Plugin URI: https://eighty20results.com/paid-memberships-pro/do-it-for-me/
Description: Customizations - Register Helper Fields
Version: 1.0
Author: Eighty / 20 Results by Wicked Strong Chicks, LLC <thomas@eighty20results.com>
Author URI: https://eighty20results.com/thomas-sjolshagen/
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
License: GPLv2 or later
@eighty20results
eighty20results / disable-paypalexpress-for-level.php
Created May 15, 2018
Removes the "Pay with PayPal Express" choice from the checkout page when the user uses one of the specified Membership Level IDs
View disable-paypalexpress-for-level.php
<?php
/*
Plugin Name: PMPro Customizations: Remove PayPal Express as payment option for Membership Level
Plugin URI: https://eighty20results.com/paid-memberships-pro/do-it-for-me/
Description: Removes PayPal Express as a payment option on the PMPro Checkout page when the user has selected a specific membership level.
Version: 1.0
Author: Eighty / 20 Results by Wicked Strong Chicks, LLC <thomas@eighty20results.com>
Author URI: https://eighty20results.com/thomas-sjolshagen/
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
License: GPLv2 or later
@eighty20results
eighty20results / pmpro-start-of-month-payments.php
Created Aug 27, 2016
Prorate the inital payment & set the start date for the recurring payments to the 1st of the month
View pmpro-start-of-month-payments.php
<?php
/*
Plugin Name: Prorated initial membership payment
Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-customizations/
Description: Will prorate the membership payment from today until the 1st of the next month.
Version: .1
Author: Thomas Sjolshagen @ Stranger Studios <thomas@eighty20results.com>
Author URI: http://www.eighty20results.com/thomas-sjolshagen
*/
View Expire membership access on last billing date
add_action( "pmpro_after_change_membership_level", "e20r_cancel_at_end_of_period", 10, 2 );
add_filter( "pmpro_email_body", "e20r_email_body_for_cancel_msg", 10, 2 );
/**
* Change cancellation to set expiration date for next payment instead of cancelling immediately.
* Assumes monthly membership levels.
* Assumes orders are generated for each payment (i.e. your webhooks/etc are setup correctly).
*
* @param (int) $level_id -- The membership levelId we're changing
* @param (int) $user_id -- The member we're changing levels for.
You can’t perform that action at this time.