View gist:ececad5d57e3946c5af3
1 2 3 4 5 6 7 8 9 10
<?php
/*
* Plugin Name: Restrict Content Pro - Collect Billing Address
* Description: Collect customers billing address during registration through Restrict Content Pro
* Author: Pippin Williamson
* Version: 1.0
*/
class RCP_Billing_Address {
View edd-slack-slash-command.php
1 2 3 4 5 6 7 8 9 10
<?php
function pw_rcp_earnings_slash_command() {
# Check to make sure this is a Slash Command Request
if ( ! isset( $_REQUEST['slack_slash'] ) && 'your_custom_string' != $_REQUEST['slack_slash'] )
return false;
# Check to see if a token has been passed as well
if ( ! isset( $_REQUEST['token'] ) )
View gist:55a3d6cbf9e9f2d51789

While I'm often a member of a rather small group of people that think this way, I actually believe very strongly that spending time and effort figuring out how to make it harder for dishonest people to take things from you is generally a waste of time.

security is all about steadily making it harder for dishonest people to try stuff.

Piracy happens in just about every industry, but the impact that piracy has on your business largely has to do with how you choose to fight it. If you take an active approach and invest multitudes of time, effort, and money into combatting those that have no appreciation for the value of your product, you will actually undermine the intrinsic value of the product. How? Simply by investing time, money and effort in the wrong place. I prefer to take the time, effort and money that I could use to fight piracy and invest it directly into real customers and the people that have an appreciation for what has been built. Is some money lost due to piracy? Maybe. Is a whole lot more g

View gist:5629997157daa96ad9a7
1 2 3 4 5 6 7 8 9
<?php
/**
* Plugin Name: Easy Digital Downloads - PayPal Handling Fee
* Description: Adds a handling fee to EDD purchases that go through PayPal
* Author: Pippin Williamson
* Author URI: http://pippinsplugins.com
* Contributors: mordauk
* Version: 1.0
*/
View gist:3c1fe20e6abb04a2e85d
1 2 3 4 5 6 7 8 9
<?php
function pw_edd_purchase_form_required_fields( $required_fields ) {
unset( $required_fields['edd_first'] );
return $required_fields;
}
add_filter( 'edd_purchase_form_required_fields', 'pw_edd_purchase_form_required_fields' );
View gist:d973776836ab984aea06
1 2 3 4 5 6 7 8 9 10
<?php
/*
* Plugin name: Affiliate role on registration
*/
function pw_affwp_set_role_on_registration( $affiliate_id = 0 ) {
$user_id = affwp_get_affiliate_user_id( $affiliate_id );
$user = new WP_User( $user_id );
$user->add_role( 'affiliate' );
View gist:f1fa0fa83d556fd31cdc
1 2 3 4 5 6 7 8 9
<?php
/*
* Plugin Name: Restrict Content Pro - OntraPort Referral Tracking
* Description: Very basic referral tracking for onraport and Restrict Content Pro
*/
function pw_rcp_ontraport_referrals( $payment_id, $args, $amount ) {
global $rcp_options;
View gist:6ef05f7d293cc215a441
1 2 3 4 5 6 7 8 9 10
<?php
function pw_rcp_update_role_status_change( $new_status, $user_id ) {
switch( $new_status ) {
case 'expired' :
case 'pending' :
case 'free' :
case 'cancelled' :
View gist:4061d850852e9d73531a
1 2 3 4 5 6 7 8 9 10
<?php
function rcp_add_member_caps() {
// gets the editor role
$role = get_role( 'editor' );
// Allow Editors to view Members in Restrict Content Pro
$role->add_cap( 'rcp_view_members' );
}
View gist:ebcf859c0443b161e40c
1 2 3 4 5 6 7 8 9
<?php
/*
* Plugin Name: EDD Redirect to Next Product on Add to Cart
* Description: Automatically redirects the customer to the next product after they have added an item to the cart
* Author: Pippin Williamson
* Version: 0.1
*/
function pw_edd_redirect_to_next_scripts( $download_id = 0 ) {
Something went wrong with that request. Please try again.