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_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 September 7, 2021 15:56 — 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
@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 August 30, 2021 14:18 — 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 ) {