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
@MaryOJob
MaryOJob / my_pmpro_custom_text_field.php
Last active Dec 20, 2019
Adding a Custom Text Field to PMPro Checkout Page
View my_pmpro_custom_text_field.php
<?php
/**
* Register Helper example for five fields. This is a test Register Helper example.
* Please add the below code to your custom plugin or Code Snippets Plugin by following this guide - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function my_pmprorh_init() {
//don't break if Register Helper is not loaded
if(!function_exists( "pmprorh_add_registration_field" )) {
@MaryOJob
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
<?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:" . "otheremail@domain.com";
}
@MaryOJob
MaryOJob / my_pmpro_change_state_to_county.php
Last active Nov 26, 2019
Change the word "State" to "County" for Paid Memberships Pro
View my_pmpro_change_state_to_county.php
<?php
/* This replaces all fields with 'state' with 'county'
* Add the code below to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function my_replace_text_for_pmpro_pages($text) {
global $pmpro_pages;
if ( is_page( $pmpro_pages['checkout'] ) || is_page( $pmpro_pages['confirmation'] ) || is_page( $pmpro_pages['account'] ) || is_page( $pmpro_pages['billing'] ) || is_page( $pmpro_pages['cancel'] ) || is_page( $pmpro_pages['invoice'] ) || is_page( $pmpro_pages['levels'] ) ) {
$text = str_replace( 'State', 'County', $text) ;
@MaryOJob
MaryOJob / my_pmpro_invoice_member_emails.php
Last active Nov 25, 2019
BCC all PMPro Invoice Emails to a Certain Address
View my_pmpro_invoice_member_emails.php
<?php
/*
Bcc admin on PMPro members invoice emails only
You can change the conditional to check for a certain $email->template or some other condition before adding the BCC.
*/
function my_pmpro_email_headers_admin_emails($headers, $email)
{
//bcc checkout emails
@MaryOJob
MaryOJob / register-helper-test1.php
Last active Nov 21, 2019
Adding Five Custom Fields to PMPro Accounts Page
View register-helper-test1.php
<?php
/**
* Register Helper example for five fields. This is a test Register Helper example.
* Please add the below code to your custom plugin or Code Snippets Plugin by following this guide - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function my_pmprorh_init() {
//don't break if Register Helper is not loaded
if(!function_exists( "pmprorh_add_registration_field" )) {
You can’t perform that action at this time.