Skip to content

Instantly share code, notes, and snippets.

@michaelbeil
michaelbeil / positive-ssl-seal.php
Last active October 3, 2023 01:28 — forked from kerijacoby/positive-ssl-seal
Add Positive SSL Seal to PMPro Checkout Page
<?php
/*
Add Positive SSL Seal to PMPro Checkout Page.
*/
function my_option_pmpro_sslseal($seal) {
if(is_admin()) {
return$seal;
}
ob_start(); ?>
<script type="text/javascript"> //<![CDATA[
@michaelbeil
michaelbeil / change-pmprosp-required-password-strength.php
Created September 27, 2023 00:57 — forked from ipokkel/change-pmprosp-required-password-strength.php
Change PMPro Strong Password's minimum required password strength.
<?php
/**
* This recipe sets the required password strength or length for PMPro Strong Passwords *
* depending on the PHP version and the settings below.
*
* You should set your password strength or length in the SETTINGS section below
* inside the my_pmprosp_password_strength function.
*
* 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.
@michaelbeil
michaelbeil / change-add-paypal-express.php
Last active September 26, 2023 17:23 — forked from ipokkel/change-add-paypal-express.php
Change text for add paypal express to checkout translation strings
<?php
/**
* This recipe changes text for add paypal express to checkout
*
* 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/
*
@michaelbeil
michaelbeil / my-pmpro-login-forms-handler-nav.php
Last active September 20, 2023 20:38 — forked from ipokkel/my-pmpro-login-forms-handler-nav.php
This recipe removes the "Join Now" registration link on the PMPro login page.
<?php
/**
* This recipe removes the "Join Now" registration link on the login page.
*
* This link is shown only when the "Membership [ ] Anyone can register" option was set
* on the WordPress dashboard under Settings > General. To remove the "Join Now" link
* may also be achieved through deactivating this option if all users are required
* to be a member.
*
@michaelbeil
michaelbeil / my_pmpro_shorten_reg.php
Last active September 15, 2023 22:23 — forked from kimwhite/my_pmpro_shorten_reg_info.php
Shorten registration
<?php
/*
* Plugin Name: Shorten registration
*
* This snippet will remove username, email confirmation.
*
* 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/
@michaelbeil
michaelbeil / change-text-free-level-cost-text.php
Created August 4, 2023 20:42 — forked from ipokkel/change-text-free-level-cost-text.php
This recipe changes the level cost text "Free" for free levels using the gettext filter.
<?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.
<?php // do not copy this line.
/**
* Sponsored Members setup with child seat costs at checkout.
* SPONSOR SEAT + 4 seats @ 1120 each
* + 5 to 10 @ 275 each
*
* 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/
@michaelbeil
michaelbeil / pmpro_hide_account_page_until_validated.php
Last active July 21, 2023 15:58 — forked from strangerstudios/pmpro_hide_account_page_until_validated.php
Hide the PMPro Account page until a user confirms their email address via the PMPro Email Confirmation addon.
<?php
/**
* Update your membership confirmation text then to include a reminder about confirming your email.
*
* This recipe assumes the PMPro Email Validation Add On is installed & actived.
*
* 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/
@michaelbeil
michaelbeil / sequential-numeric-member-number.php
Last active July 12, 2023 17:27 — forked from ipokkel/sequential-numeric-member-number.php
Create sequential membership numbers. Display on user account, edit profile, and memberslist pages and membership card and include in memberslist csv export
<?php
/**
* Sequential Member Numbers
* Member numbers are automatically increased from the value set for $starting_member_number after each member registration
*
* Add this code to your PMPro Customizations Plugin
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*
* Requirements:
@michaelbeil
michaelbeil / pmpro-cpt.php
Last active June 19, 2023 22:44 — forked from ideadude/pmpro-cpt.php
Add the PMPro meta box to a CPT. Add this to your plugin/etc.
<?php
/**
* Add the PMPro meta box to a CPT
*
* 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/
*/
function my_add_pmpro_meta_box_to_cpts() {