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 / 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 / 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>
@MaryOJob
MaryOJob / add-pmpro-name-to-email.php
Last active August 26, 2021 23:49 — forked from andrewlimaza/add-pmpro-names-to-email.php
Add first name variable to Paid Memberships Pro Emails
<?php // do not copy this line
/**
* Adds !!first_name!! variable to be used with the Paid Memberships Pro Email Templates.
* This data will be available for all Paid Memberships Pro emails.
* Add the below code to your PMPro Customizations Plugin: https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
* And edit the email templates you want to add this to
*/
function add_first_name_to_pmpro_emails( $data, $email ) {
@MaryOJob
MaryOJob / example-pmprorh-save-function-with-registration-check.php
Created August 17, 2021 16:23 — forked from ipokkel/example-pmpro-save-function-with-registration-check.php
Collect the default WordPress Website URL and Biographical description during Membership Checkout with Register Helper fields using save_function custom callback that includes a validation check which returns an error message if the field value failed the check.
<?php
/**
* This recipe adds Website and Biographical Info to the Membership Checkout.
*
* 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/
*/