Skip to content

Instantly share code, notes, and snippets.

Working remotely 😈

Mary Job MaryOJob

Working remotely 😈
Block or report user

Report or block MaryOJob

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
View pmpro_customizations_gift_levels_example.php
<?php // do not copy this line please
/* PMPro Gift Levels Example */
global $pmprogl_gift_levels;
$pmprogl_gift_levels = array(
// Set level 1 as a "Purchase Gift" membership level to create a gift code for a free level 2 gift.
1 => array( // "Purchase Gift" level ID
'level_id' => 2, // Membership Level ID of the gift membership level.
View my_pmpro_default_registration_level.php
<?php // do not copy this line
* When registering, add the member to a specific membership level
* @param integer $user_id
//Disables the pmpro redirect to levels page when user tries to register
add_filter("pmpro_login_redirect", "__return_false");
function my_pmpro_default_registration_level($user_id) {
MaryOJob / my_pmpro_login_redirect_url.php
Created Jan 15, 2020 — forked from travislima/my_pmpro_login_redirect_url.php
Redirect on login if user has any failed payments. (Requires Paid Memberships Pro Failed Payment Limit Add On)
View my_pmpro_login_redirect_url.php
* Redirect on login if user has any failed payments. (Requires Paid Memberships Pro Failed Payment Limit Add On)
* Adjust the code on the line the line "site_url( ' payment-failed')" to redirect to page of your prefereance.
* Add this code to your PMPro Customizations Plugin -
function my_pmpro_login_redirect_url( $url, $request, $user ) {
MaryOJob / pmprosm_sponsored_account_levels.php
Last active Jan 14, 2020 — forked from ideadude/pmprosm_sponsored_account_levels.php
Example global settings for the PMPro Sponsored Members Add On
View pmprosm_sponsored_account_levels.php
Define the global array below for your main accounts and sponsored levels.
Array keys should be the main account level.
$pmprosm_sponsored_account_levels = array(
MaryOJob / my_pmpro_email_headers_admin_emails.php
Last active Dec 12, 2019 — forked from femiyb/my_pmpro_email_headers_admin_emails.php
BCC all PMPro Register/Checkout Emails to a Certain Address
View my_pmpro_email_headers_admin_emails.php
Add bcc for checkout emails
function my_pmpro_email_headers_admin_emails($headers, $email) {
//bcc checkout emails
if(strpos($email->template, "checkout_") !== false) {
//add bcc
$headers[] = "Bcc:" . "";
You can’t perform that action at this time.