Skip to content

Instantly share code, notes, and snippets.

Avatar

Theuns Coetzee ipokkel

View GitHub Profile
@ipokkel
ipokkel / my-pmprorh-manager-and-adminstrator-only-fields.php
Created Sep 28, 2020
This recipe creates custom fields for membership registration and has a custom profile field function that may be used to display a Register Helper field only to membership manager or administrators.
View my-pmprorh-manager-and-adminstrator-only-fields.php
<?php
/**
* This recipe creates custom fields for membership registration and
* has a custom profile field function that may be used to display a field
* only to membership manager or administrators.
*
* @requires Register Helper Add On
* @link https://www.paidmembershipspro.com/add-ons/pmpro-register-helper-add-checkout-and-profile-fields/
*
* You can add this recipe to your site by creating a custom plugin
@ipokkel
ipokkel / change-text-free-level-cost-text.php
Created Sep 25, 2020
This recipe changes the level cost text "Free" for free levels using the gettext filter.
View change-text-free-level-cost-text.php
<?php
/**
* This recipe changes the level cost text "Free" for
* free levels 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.
View Change Text on Membership Levels
/**
* This filter will search your codebase for translatable strings and replace when an exact match is found.
*
* Here we're changing 'Membership' to 'Subscription' for Paid Memberships Pro.
*
* Add this code to your PMPro Customizations Plugin
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
* Note: When adding to your Customizations Plugin, be careful not to include the opening php tag on line 1 above.
*
* @param string $output_text this represents the end result
@ipokkel
ipokkel / my-pmpro-terms-and-conditions-checkbox.php
Created Sep 24, 2020
This recipe creates an additional Terms and Conditions checkbox field.
View my-pmpro-terms-and-conditions-checkbox.php
<?php
/**
* This recipe creates an additional Terms and Conditions check field.
*
* @requires Register Helper Add On
* @link https://www.paidmembershipspro.com/add-ons/pmpro-register-helper-add-checkout-and-profile-fields/
*
* 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 / my-pmpro-redirect-non-members-to-another-page.php
Last active Sep 24, 2020
This recipe will redirect non-members from a specific page to the levels page.
View my-pmpro-redirect-non-members-to-another-page.php
<?php
/**
* This recipe will redirect non-members from a specific page to the levels 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/
*/
@ipokkel
ipokkel / change-login-page-username-or-email-address.php
Last active Sep 23, 2020
Change the "Username or Email Address" text string on the PMPro login page
View change-login-page-username-or-email-address.php
<?php
/**
* This recipe will change the "Username or Email Address" text string
* on the login page.
* https://github.com/strangerstudios/paid-memberships-pro/blob/94cba55534b4a0b1cbf18259d6bd895d7d0d6160/includes/login.php#L545
*
* 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 / pmpro-one-time-signup-fee.php
Last active Sep 25, 2020 — forked from kimwhite/pmpro-one-time-signup-fee.php
This recipe will allow you to charge additional extras on the user's fee. #pmpro #checkout
View pmpro-one-time-signup-fee.php
<?php
/**
* This recipe will allow you to charge additional extras on the user's fee.
*
* 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-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/
*/
You can’t perform that action at this time.