Skip to content

Instantly share code, notes, and snippets.

View kimwhite's full-sized avatar

Kim White kimwhite

View GitHub Profile
@kimwhite
kimwhite / remove_confirm_email_password.php
Last active February 23, 2024 13:25 — forked from femiyb/remove_confirm_email_password.php
Remove Confirm Email and Password
<?php
/**
* This recipe will Remove Confirm Email and Confirm Password
*
* 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/
*/
@kimwhite
kimwhite / next_payment_date_account.php
Last active November 30, 2021 19:20 — forked from andrewlimaza/next_payment_date_account.php
Show next payment date under the 'Expiration' field on any page (removed if for account page)
<?php
/**
* Show next payment date under 'Expiration' field on My Membership box
* Add this code to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
* Works for PayPal Express and Stripe payment gateways.
* www.paidmembershipspro.com
*/
// Change the expiration text to show the next payment date instead of the expiration date
// This hook is setup in the wp_renewal_dates_setup function below
function my_pmpro_expiration_text($expiration_text) {
<?php // do not copy this line.
/**
* This recipe will add a message before the submit button
*
* 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/
*/
@kimwhite
kimwhite / my_pmpro_redirect_places.php
Last active November 3, 2021 18:23 — forked from dparker1005/my_pmpro_redirect_places.php
Will redirect non members from your cpt pages. Useful to lock down the archive page and CPTs
<?php
// Copy from below here
/**
* Will redirect users without a $required_levels away from pages where the request uri begins with '/places/'.
* Useful to lock down the archive page and CPTs of GeoDirectory plugin.
*/
function my_pmpro_redirect_places() {
$request_uri_to_redirect = '/dog-profile';
@kimwhite
kimwhite / pmpro-stripe-order-description.php
Created October 26, 2021 18:05 — forked from greathmaster/pmpro-stripe-order-description.php
Add the membership level ID and name to the Stripe description
<?php // do not copy this line.
/**
* Add the membership level ID and name to the Stripe description
*
* 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/
*/
@kimwhite
kimwhite / my_gettext_pmpro_mailchimp.php
Last active February 19, 2025 15:27 — forked from strangerstudios/my_gettext_pmpro_mailchimp.php
Change wording in PMPro MailChimp Opt In Box
<?php // do not copy this line.
/**
* This recipe will Change wording in PMPro MailChimp Opt In Box
* Change the $translated_text = lines to the text you want.
*
* 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/
*/
@kimwhite
kimwhite / change-we-accept-checkout-text.php
Created October 14, 2021 19:25 — forked from andrewlimaza/change-we-accept-checkout-text.php
Change the We Accept Checkout Text for Paid Memberships Pro.
<?php
/**
* This recipe will change wording on your payment page
*
* 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/
*/
@kimwhite
kimwhite / pmpro-format-phone-number.php
Last active October 7, 2021 15:07 — forked from greathmaster/pmpro-format-phone-number.php
Actively formats phone number into XXX-XXX-XXXX format
<?php // do not copy this line.
/**
* This recipe will Actively formats phone number into XXX-XXX-XXXX format
* on the PMPro chekcout page. if not using the billing phone, change line 18 # to be the id of your custom field
*
* 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/
*/
<?php // do not copy this line.
/**
* This recipe will force the top discount code to be open without clicking anything
*
* 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/
*/
@kimwhite
kimwhite / my-gettext-shipping.php
Last active September 29, 2021 20:07 — forked from ipokkel/my-gettext-shipping.php
Change text for PMPro Shipping
<?php
/**
* This recipe changes text for the PMPro Shipping Add On.
*
* 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/
*/