Skip to content

Instantly share code, notes, and snippets.

Avatar

Theuns Coetzee ipokkel

View GitHub Profile
View pmpromd-format-anchor-link.php
@ipokkel
ipokkel / hide-already-have-an-account-log-in-here.css
Created Jul 1, 2022
Hide "Already have an account? Log in here" on the PMPro Checkout page.
View hide-already-have-an-account-log-in-here.css
/* Hide "Already have an account? Log in here" on the PMPro Checkout page. */
#pmpro_form #pmpro_user_fields h3 span.pmpro_checkout-h3-msg {
display: none;
}
@ipokkel
ipokkel / pmpro-member-directory-return-original-value.php
Created Jun 30, 2022
Return the original field value for specific field names displayed on the PMPro Member Directory and Profile pages. This should also remove the oembed applied by WordPress.
View pmpro-member-directory-return-original-value.php
<?php
/**
* Return the original field value for specific field names displayed on
* the PMPro Member Directory and Profile Pages.
*
* This can be used to remove oembed from the field value.
*
* 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 / remove_payment_plans_for_addon_package.php
Created Jun 29, 2022
Remove payment plans from an Addon Package checkout.
View remove_payment_plans_for_addon_package.php
<?php
/**
* This recipe removes payment plans from the PMPro checkout page if
* checkout is for an Addon Package.
*
* 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/
*/
View memberlite-replace-google-fonts-with-bunny-net.php
<?php
/**
* Load Memberlite fonts from Bunny.net instead of Google Fonts.
*
* 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/
*/
View remove-membership-level-section-from-checkout-page.php
<?php
/**
* Remove the level pricing fields (Membership Level section) for free levels.
*
* 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/
*/
add_filter( 'pmpro_include_pricing_fields', '__return_false' );
View free_level_remove_level_description.php
<?php
/**
* Remove the level description on the checkout page for free levels.
*
* 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 free_level_remove_level_description( $description, $pmpro_level ) {
View free_level_remove_pmpro_level_cost_text.php
<?php
/**
* Remove the level cost text on the checkout page for free levels.
*
* 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 free_level_remove_pmpro_level_cost_text( $text, $level ) {
View free_level_remove_pricing_fields.php
<?php
/**
* Remove the level pricing fields (Membership Level section) for free levels.
*
* 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 / logout-redirect-to-level-homepage.php
Last active Jun 21, 2022
Redirect users to their membership level homepage after logging out of WordPress.
View logout-redirect-to-level-homepage.php
<?php
/**
* Redirect users to their membership level homepage after logging out of WordPress.
*
* 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/
*/