Skip to content

Instantly share code, notes, and snippets.

View MaryOJob's full-sized avatar
🏠
Working remotely 😈

Mary Job MaryOJob

🏠
Working remotely 😈
View GitHub Profile
@MaryOJob
MaryOJob / my-pmpro-change-admin-email.php
Last active September 28, 2021 09:45 — forked from andrewlimaza/my-pmpro-change-admin-email.php
Change the admin email to three different recipients for all Paid Memberships Pro admin emails - Useful if you want your team to be notified on Member Notifications
<?php // do not copy this line
/**
* Change the email address to three other recipients for all admin related emails in Paid Memberships Pro.
* Follow this guide to add custom code to your WordPress site - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function my_pmpro_change_admin_to_email( $user_email, $email ){
if( strpos( $email->template, "_admin" ) !== false ) {
$user_email = '[email protected], [email protected], [email protected]';
@MaryOJob
MaryOJob / my_pmpro_userpages_mail_member_post_updated.php
Last active September 24, 2021 13:39
Email a member whenever their User Page (PMPro User Pages Add On) is updated - PMPro
<?php // do not copy this line
/**
* This recipe will email the member whose user page is updated, everytime it is updated with any information.
* Thanks to @ShoboySnr and @webcreativeng for helping with this gist, and @JarrydLong for modifying further
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
* Read this companion article for step-by-step directions on either method.
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
@MaryOJob
MaryOJob / pmpro-change-admin-to-email.php
Last active March 20, 2025 14:27 — forked from andrewlimaza/pmpro-change-admin-to-email.php
Add bcc for PMPro admin emails [Paid Memberships Pro]
<?php // do not copy this line
/**
* Add bcc for PMPro admin emails
* Follow this guide to add custom code to your site - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function my_pmpro_email_headers_admin_emails($headers, $email) {
// bcc emails already going to admin_email
if (strpos($email->template, '_admin') !== false) {
@MaryOJob
MaryOJob / disable_email_template_memberlevel.php
Last active September 6, 2021 21:04 — forked from femiyb/disable_email_template_memberlevel.php
Disable Recurring Payment Reminder Emails for Specific Levels - PMPro
<?php // do not copy this line
/**
* This recipe will disable the recurring payment email reminders for the specifc levels stated
*
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
* Read this companion article for step-by-step directions on either method.
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
@MaryOJob
MaryOJob / my_pmpro_disable_reminder_email_per_level.php
Last active January 21, 2022 09:57
Disable Recurring Payment Reminder Emails for Specific Level(s) - PMPro
<?php // do not copy this line
/**
* This recipe will disable the recurring payment email reminders for the specifc levels stated
*
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
* Read this companion article for step-by-step directions on either method.
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
@MaryOJob
MaryOJob / disable_pmpropbc_send_invoice_email.php
Created September 2, 2021 17:47 — forked from dparker1005/disable_pmpropbc_send_invoice_email.php
Disables sending a invoice emails for check orders whenever an order is saved in success status.
<?php
/**
* Disables sending a invoice emails for check orders whenever an order is saved
* in success status.
*
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
* Read this companion article for step-by-step directions on either method.
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
@MaryOJob
MaryOJob / pmpro_polylang_translate_notloggedintext.php
Created August 31, 2021 13:49 — forked from dparker1005/pmpro_polylang_translate_notloggedintext.php
Translates the PMPro Not Logged In text while using Polylang.
<?php
// Copy from below here...
/*
* Translates the PMPro Not Logged In text while using Polylang.
* Currently set up to use US English and Spain Spanish.
*/
function my_pmpro_polylang_translate_notloggedintext( $value, $options ) {
switch ( get_locale() ) {
@MaryOJob
MaryOJob / pmpro-australia-gst.php
Last active December 21, 2023 12:07 — forked from ideadude/pmpro-australia-gst.php
Paid Memberships Pro - Australia GST (Checkbox on by default)
<?php // do not copy this line
/*
Plugin Name: Paid Memberships Pro - Australia GST
Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-australia-gst/
Description: Apply Australia GST to Checkouts with PMPro
Version: .1
Author: Stranger Studios
Author URI: http://www.strangerstudios.com
*/
@MaryOJob
MaryOJob / my_pmpro_always_show_renew_levels.php
Last active July 5, 2024 12:20 — forked from femiyb/my_pmpro_always_show_renew_levels.php
Always show renew links for certain PMPro levels if the member already has that level.
<?php // do not copy this line
/*
* This recipe would always show the renew link on the membership account page for the specified levels on line 13
* Add the below code to your PMPro Customizations Plugin:
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
// always show renew links for certain levels if the member already has that level.
@MaryOJob
MaryOJob / mycustom_confirmation.html
Created August 30, 2021 11:30 — forked from gausam/mycustom_confirmation.html
Send additional custom confirmation email
<h3>Lorem Isupm, !!display_name!!</h3>
<p>Any content can be added here.</p>
<p>Please see the <i>Variable Reference</i> at https://www.paidmembershipspro.com/add-ons/email-templates-admin-editor/</p>
<p>Account: !!display_name!! (!!user_email!!)</p>
<p>Log in to your membership account here: !!login_link!!</p>