Skip to content

Instantly share code, notes, and snippets.

Avatar

Theuns Coetzee ipokkel

View GitHub Profile
@ipokkel
ipokkel / my-pmprorh-init-custom-field-locations-example.php
Last active Sep 3, 2020
Example custom locations for Register Helper
View my-pmprorh-init-custom-field-locations-example.php
<?php
/**
* This recipe is an example of how to create field locations for
* Register Helper with the pmprorh_add_checkout_box function.
*
* https://www.paidmembershipspro.com/documentation/register-helper-documentation/adding-fields/
* See "Checkout Boxes" section.
*
* 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.
@ipokkel
ipokkel / my-pmpro-change-display-name-member-directory.php
Created Aug 27, 2020
Changes a user's display name on PMPro Member Directory and Member Profile pages to their login name.
View my-pmpro-change-display-name-member-directory.php
<?php
/**
* This recipe changes a user's display name on directory and
* profile pages with their login name.
*
* This requires the latest version (1.0+) of
* the Member Directory and Profile Pages Add On
* https://www.paidmembershipspro.com/add-ons/member-directory/
*
* You can add this recipe to your site by creating a custom plugin
@ipokkel
ipokkel / my-limit-post-view-for-pages.php
Created Aug 27, 2020
Include access to restricted pages with Limit Post View but exclude a specific page from being viewed.
View my-limit-post-view-for-pages.php
<?php
/**
* This recipe provides access on a limited basis to a specific page
* using Limit Post Views 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/
*/
@ipokkel
ipokkel / change-text-for-pmpro-approvals.php
Created Aug 26, 2020
Manually change text or translate text string for PMPro Approvals Add On using the gettext filter.
View change-text-for-pmpro-approvals.php
<?php
/**
* This recipe changes localized text strings for
* Paid Memberships Pro Approvals Add On using the gettext filter.
*
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
*
* 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.
@ipokkel
ipokkel / change_postal_code_to_zip_code.php
Created Aug 19, 2020
Change postal code to zip code in PMPro
View change_postal_code_to_zip_code.php
<?php
/**
* This recipe changes all instances of 'Postal Code' to 'Zip Code' for Paid Memberships Pro.
*
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
*
* 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/
@ipokkel
ipokkel / my-pmprorh-depends-select-dropdown.php
Created Aug 18, 2020
Select depends example for Register Helper and Custom JQuery.
View my-pmprorh-depends-select-dropdown.php
<?php
/**
* This recipe is an example of how to
* toggle the display of depending "child" field
* when using a select dropdown field type
* for Register Helper.
*
* @requires Register Helper Add On
* @link https://www.paidmembershipspro.com/add-ons/pmpro-register-helper-add-checkout-and-profile-fields/
*
@ipokkel
ipokkel / my-pmprorh-depends-select-multiple.php
Last active Aug 18, 2020
Multiple Select depends example for Register Helper and Custom JQuery.
View my-pmprorh-depends-select-multiple.php
<?php
/**
* This recipe is an example of how to
* toggle the display of depending "child" fields
* when using select field type with a multiple option
* for Register Helper.
*
* @requires Register Helper Add On
* @link https://www.paidmembershipspro.com/add-ons/pmpro-register-helper-add-checkout-and-profile-fields/
*
@ipokkel
ipokkel / my-pmprorh-depends-select2.php
Last active Aug 18, 2020
Select2 depends example for Register Helper and Custom JQuery.
View my-pmprorh-depends-select2.php
<?php
/**
* This recipe is an example of how to
* toggle the display of depending "child" fields
* when using select2 field types
* for Register Helper.
*
* @requires Register Helper Add On
* @link https://www.paidmembershipspro.com/add-ons/pmpro-register-helper-add-checkout-and-profile-fields/
*
@ipokkel
ipokkel / my-pmpro-init-date-picker.php
Last active Sep 20, 2020
Date picker for PMPro Register Helper #pmpro #datepicker
View my-pmpro-init-date-picker.php
<?php
/**
* This recipe creates a custom text field for membership registration
* using a jQuery datepicker widget to visually pick a date.
*
* For further options to tweak the date picker to suit your requirements
* you may refer to the official documentation.
* @link https://api.jqueryui.com/datepicker/
*
* @requires Register Helper Add On
@ipokkel
ipokkel / prorate-fiscal-year-per-quarter.php
Created Aug 11, 2020
Prorate initial payment per quarater based on subscription delay for a yearly (fiscal) recurring subscription
View prorate-fiscal-year-per-quarter.php
<?php
/**
* This recipe prorates initial payment per quarter based on subscription delay
* for a yearly (fiscal) recurring subscription.
*
* Requires Subscription Delay and Proration Add Ons.
*
* 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.
You can’t perform that action at this time.