Skip to content

Instantly share code, notes, and snippets.

Ashley Gibson nosegraze

Block or report user

Report or block nosegraze

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
@nosegraze
nosegraze / rcp-paypal-express-process-webhooks.php
Created Jul 12, 2019
RCP - PayPal Express webhook processing example
View rcp-paypal-express-process-webhooks.php
<?php
/**
* Process PayPal IPN
*
* @access public
* @since 2.1
* @return void
*/
public function process_webhooks() {
View rcp-custom-payment-gateway-process-signup-after.php
<?php
/**
* Authorize.net Payment Gateway
*
* @package rcp-authorize-net
* @copyright Copyright (c) 2019, Restrict Content Pro team
* @license GPL2+
* @since 1.0
*/
View rcp-custom-payment-gateway-process-signup-before.php
<?php
/**
* Authorize.net Payment Gateway
*
* @package rcp-authorize-net
* @copyright Copyright (c) 2019, Restrict Content Pro team
* @license GPL2+
* @since 1.0
*/
@nosegraze
nosegraze / rcp-payment-gateway-init.php
Created Jul 12, 2019
RCP custom payment gateway - init() method
View rcp-payment-gateway-init.php
<?php
/**
* Get things going
*
* @access public
* @since 1.0
* @return void
*/
public function init() {
global $rcp_options;
@nosegraze
nosegraze / class-rcp-payment-gateway.php
Created Jul 12, 2019
RCP payment gateway base class
View class-rcp-payment-gateway.php
<?php
/**
* Payment Gateway Base Class
*
* You can extend this class to add support for a custom gateway.
* @link http://docs.restrictcontentpro.com/article/1695-payment-gateway-api
*
* @package Restrict Content Pro
* @subpackage Classes/Gateway
* @copyright Copyright (c) 2017, Pippin Williamson
@nosegraze
nosegraze / rcp-mailchimp-pro-free-status.php
Created Feb 11, 2019
RCP MailChimp Pro: Returns the "free" STATUS merge var value for unpaid memberships.
View rcp-mailchimp-pro-free-status.php
<?php
/**
* Plugin Name: Restrict Content Pro - MailChimp Pro "Free" Status
* Description: Returns the "free" STATUS merge var value for unpaid memberships.
* Version: 1.0
* Author: Restrict Content Pro Team
*/
/**
* Change `STATUS` merge var to `free` for unpaid users on initial registration.
@nosegraze
nosegraze / rcp-billing-address.php
Last active Dec 5, 2017 — forked from pippinsplugins/gist:ececad5d57e3946c5af3
Adds billing address fields to Restrict Content Pro
View rcp-billing-address.php
<?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 {
@nosegraze
nosegraze / novelist-series-archive-orderby.php
Created Jul 14, 2017
Novelist: Order series archive by publication date
View novelist-series-archive-orderby.php
<?php
/**
* Modify Book Query
*
* Modifies the WP_Query to change the series archive "orderby" parameter to use
* the book's publication date rather than the number in the series. This
* eliminates the need to fill out the book series number.
*
* @param WP_Query $query
*
View rcp-always-show-excerpt.php
<?php
/**
* Always show an excerpt.
*
* @param null|array|string $value The value get_metadata() should return - a single metadata value, or an array of values.
* @param int $post_id Object ID.
* @param string $meta_key Meta key.
* @param bool $single Whether to return only the first value of the specified $meta_key.
*
@nosegraze
nosegraze / rcp-edit-admin-email-message.php
Created Jan 9, 2017
Edit the contents of the admin expired email notice.
View rcp-edit-admin-email-message.php
<?php
/**
* Append text to admin expired email.
* Also convert template tags.
*
* @param string $admin_message Default admin message contents.
* @param int $user_id ID number of the expired user.
*
* @return string New admin message contents.
You can’t perform that action at this time.