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 / aja-pmpro-customizations.php
Created Aug 23, 2017
Customization: Prorated Expiring membership for @ajac036
View aja-pmpro-customizations.php
<?php
/*
Plugin Name: PMPro Customizations: Membership proration
Plugin URI: https://eighty20results.com/paid-memberships-pro/do-it-for-me/
Description: Prorate price for Level ID 5 memberships based on month of the year when the user signs up
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-custom-advanced-messages.php
Created Aug 22, 2017
Access denied messages for RSS feeds and Non Member users. Custom message based on the membership level the user _does_ have
View pmpro-custom-advanced-messages.php
<?php
/**
* Plugin Name: Paid Memberships Pro - Custom Advanced Settings Messages
* Plugin URI: https://eighty20results.com/paid-memberships-pro/do-it-for-me/
* Description: Per membership level message for the membership/login required
* Version: 1.0
* Author: Paid Memberships Pro / Thomas Sjolshagen <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-australian-gst.php
Last active Nov 6, 2017
Calculate GST for Australian billing addresses/residents
View pmpro-australian-gst.php
<?php
/**
* Plugin Name: Paid Memberships Pro - Australian GST
* Plugin URI: https://eighty20results.com/paid-memberships-pro/do-it-for-me/
* Description: Calculate and display GST for Australian customers at checkout
* Version: 1.0
* Author: Paid Memberships Pro / Thomas Sjolshagen <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 / ic-customizations.php
Created Jun 8, 2017
Customizations to use the "Capture Name & Address for Free Levels or for Offsite Gateway" add-on
View ic-customizations.php
<?php
/*
Plugin Name: PMPro Customizations: Required Field Changes
Plugin URI: https://eighty20results.com/paid-memberships-pro/do-it-for-me/
Description: Customizations to disable required fields for some of the Address/Addon.
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 / sn-customizations.php
Created May 23, 2017
Custom Fields (Register Helper)
View sn-customizations.php
<?php
/*
Plugin Name: PMPro: Custom Registration/WordPress Profile Fields
Description: Custom fields, using the PMPro Register Helper add-on
Plugin URI: https://eighty20results.com/paid-memberships-pro/do-it-for-me/
Author: Thomas Sjolshagen @ Paid Memberships Pro <thomas@eighty20results.com>
Author URI: https://eighty20results.com/thomas-sjolshagen/
Version: 1.0
License: GPL2
Text Domain: sn-customizations
@eighty20results
eighty20results / e20r-disabled-domains.php
Created Mar 31, 2017
Disallow certain email domains from creating membership(s)
View e20r-disabled-domains.php
<?php
/*
Plugin Name: PMPro e-mail domain check
Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-customizations/
Description: Check if a domain is on the "do not allow" list for registration
Version: .1
Author: Stranger Studios
Author URI: http://www.strangerstudios.com
*/
@eighty20results
eighty20results / order-records-example.php
Created Feb 2, 2017
Sample check of order records for a user
View order-records-example.php
<?php
global $wpdb;
$records = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM {$wpdb->pmpro_membership_orders} WHERE user_id = %d AND status = %s", $user_id, 'success' ) );
if ( $records == 1 ) {
// No previous order found
} else {
// Found old orders so member is not new
}
@eighty20results
eighty20results / insert-price-for-addon-packages.sql
Created Feb 1, 2017
SQL Example for adding price to multiple addon packages
View insert-price-for-addon-packages.sql
INSERT INTO PREFIX_postmeta (`post_id`, `meta_key`, `meta_value`)
SELECT `ID`, '_pmproap_price`, '<your price without a currency sign, i.e. 3.99>'
FROM PREFIX_posts
WHERE ID IN ( <comma>, <separated>, <list>, <of>, <addon>, <package>, <post>, <ids> );
@eighty20results
eighty20results / pmpro-custom-tax.php
Last active Jan 1, 2017 — forked from strangerstudios/pmpro-customizations.php
Tax solution for British Columbia, Canada to be used with Paid Memberships Pro
View pmpro-custom-tax.php
<?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
*/
/*
You can’t perform that action at this time.