See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)
For the sake of "maintaining the tradition" here is the updated version.
<?php | |
/** | |
* Remove subscription delay for existing/past members. | |
* Add code to your site following this guide - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
* | |
* Please note that you should probably have the Initial Payment amount set if removing the Subscription Delay to avoid free periods. | |
* Take note of this gist to adjust the Level Cost Text dynamically - https://gist.github.com/kimcoleman/8d0e655be9d2e8fd9545da4692c8b786 | |
* | |
* This code snippet is for advanced users/developers. | |
* |
<?php | |
/** | |
* Remove custom trials for existing and past members. | |
* Add this code to your site following this guide - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function pmpro_remove_trial_for_past_members( $level ) { | |
// Ignore if user is not logged-in. | |
if ( ! is_user_logged_in() ) { |
<?php | |
/** | |
* Automatically approve any previously approved member. | |
* Add this code to your site following this guide - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function my_pmpro_automatically_approve_previously_approved( $level_id, $user_id, $cancelled_level ) { | |
if ( ! class_exists( 'PMPro_Approvals' ) ) { | |
return; |
<?php | |
/** | |
* Remove custom trial for existing members (when existing member changes levels/renews) | |
* Adjust the level ID on line 16 to match your needs. | |
* Add this code to your WordPress site by following this guide - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function my_pmpro_level_adjustment( $level ) { | |
// Bail if the user currently doesn't have a membership level. |
See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)
For the sake of "maintaining the tradition" here is the updated version.
<?php | |
// Copy from below here... | |
/* | |
* See all functions hookoing into login_redirect hook | |
*/ | |
function my_hook_analizer_widget_function( $post, $callback_args ) { | |
print_filters_for( 'login_redirect' ); | |
} |
<?php | |
/* | |
* Plugin Name: Paid Memberships Pro - Canadian Tax | |
* Description: Apply Canadian taxes to Checkouts with PMPro | |
* Version: .1 | |
* Author: Stranger Studios | |
* Author URI: http://www.strangerstudios.com | |
*/ | |
/* |
<?php | |
/** | |
* Adds settings to Advanced Settings wheree you can set levels by comma separated list. E.G. 1,2,4,5 | |
* Users with defined levels will gain immediate access to dripfeed content. Other member's won't and will have to wait according to dripfeed settings. | |
* ****Currently requires pre-release of Series Add On V0.4.2+ | |
*/ | |
/** | |
* Overrides series delays if a membership level has been added | |
*/ |
.pmpro-checkout .pmpro_form { | |
display: -ms-grid; | |
display: grid; | |
grid-column-gap: 1em; | |
-ms-grid-columns: 1 1em 1; | |
grid-template-columns: 1 1; | |
grid-template-areas: | |
"message message" | |
"pricing pricing" | |
"user address" |
<?php | |
/* | |
Custom directory template. Adds alphabetical last name query. For example you can use the URL: | |
http://www.example.com/membership-account/directory/?lt=A | |
if you want all the members with last names starting with 'A'. | |
Also includes meta key/value search. For example you can use the URL: | |