Skip to content

Instantly share code, notes, and snippets.

View dwanjuki's full-sized avatar

David Wanjuki dwanjuki

  • Nairobi, Kenya
  • 10:55 (UTC +03:00)
View GitHub Profile
@dwanjuki
dwanjuki / my_pmpro_group_account_removal_notification.php
Created December 18, 2024 13:23
Send email to user when removed from a group account via the Manage Group page
<?php
/**
* Send email to user when removed from a group account via the Manage Group 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/
*/
@dwanjuki
dwanjuki / my_pmpro_member_links_top_parent_user_page.php
Last active December 18, 2024 11:32
Add parent User Page link to top of Member Links list
@dwanjuki
dwanjuki / my_custom_membership_expiration_text.php
Created December 2, 2024 11:14
Change account page membership expiration text
<?php
/**
* Modify account page membership expiration text
*
* 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/
*/
@dwanjuki
dwanjuki / my_pmpro_checkout_checks_require_code_to_register.php
Created November 29, 2024 15:00
Require a discount code to register for a level
<?php
/**
* Require a discount code to register for a level
*
* 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/
*/
@dwanjuki
dwanjuki / my_get_avatar_url.php
Created November 28, 2024 08:50
Filter the output of the the get_avatar_url function to use our local avatar
<?php
/**
* Filter the output of the the get_avatar_url function to use our local avatar
*
* Guide: https://www.paidmembershipspro.com/custom-user-avatars-member-profile-edit-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/
@dwanjuki
dwanjuki / pmpro_form_fields_order.css
Last active November 27, 2024 08:22
Move Password Fields below Email Address fields at checkout
#pmpro_user_fields .pmpro_form_fields .pmpro_form_field-password {
order: 1;
}
@dwanjuki
dwanjuki / my_pmpromd_filter_yoast_title.php
Created November 18, 2024 08:56
Set a custom Yoast SEO page title for PMPro Member Directory Profile pages
<?php
/**
* Set a custom Yoast SEO page title for PMPro Member Directory Profile pages
*
* 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_pmpromd_filter_yoast_title( $title ) {
@dwanjuki
dwanjuki / my_pmpromd_filter_document_title.php
Last active November 18, 2024 08:47
Set a custom page title for PMPro Member Directory Profile pages
<?php
/**
* Set a custom page title for PMPro Member Directory Profile pages
*
* 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/
*/
@dwanjuki
dwanjuki / conpd-immediately-if-trial.php
Last active November 7, 2024 12:54 — forked from andrewlimaza/conpd-immediately-if-trial.php
Cancel Members Immediately if they cancel during the trial period (Subscription Delays)
<?php
/**
* Cancel members immediately if they are cancelling within the Subscription Delay Limit of their level
*
* Works on PMPro v3.0+
*
* 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/
@dwanjuki
dwanjuki / show_admin_bar_fals.php
Created October 29, 2024 12:03
Hide Admin Bar on the frontend for all users
<?php
/*
* Hide Admin Bar on the frontend for all users
*
* 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/
*/