Skip to content

Instantly share code, notes, and snippets.

View dwanjuki's full-sized avatar

David Wanjuki dwanjuki

  • Nairobi, Kenya
  • 22:28 (UTC +03:00)
View GitHub Profile
@kimcoleman
kimcoleman / blank_base.css
Last active July 22, 2024 08:14
Sample file for theme developers include the CSS classes for v3.1 of Paid Memberships Pro elements.
.pmpro_message { }
.pmpro_message.pmpro_success { }
.pmpro_message.pmpro_error { }
.pmpro_message.pmpro_alert { }
.pmpro_message a { }
.pmpro_success a { }
.pmpro_error a { }
.pmpro_alert a { }
@andrewlimaza
andrewlimaza / keep-pmpro-member-price-manual-renewal.php
Created November 4, 2021 10:33
Keep pre-existing members on their initial checkout price when renewing their membership level.
<?php
/**
* Keep pre-existing members on their initial checkout price when manually renewing. Grandfather 'old' members when their levels pricing changes.
* Note: This is not needed for recurring membership levels and is designed for levels with an expiration date.
*
* 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
/* Sample Register Helper fields
Register Helper Add On (https://www.paidmembershipspro.com/add-ons/pmpro-register-helper-add-checkout-and-profile-fields/)
Add this to your customization plugin for PMPro Customizations: https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
or