This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Do NOT copy this line | |
/** | |
* Change pmpro-strong-passwords to require a minimum of 8 characters. | |
*/ | |
add_filter( 'pmpro_registration_checks', 'my_pmpro_strong_password_check' ); | |
function my_pmpro_strong_password_check( $pmpro_continue_registration ) { | |
// Don't load this script at all if user is logged in. | |
if ( is_user_logged_in() ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Redirect users to home page after logging out of WordPress. | |
*/ | |
function my_redirect_after_logout_wp(){ | |
wp_redirect( home_url() ); | |
exit; | |
} | |
add_action('wp_logout','my_redirect_after_logout_wp'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* CSS Document */ | |
#pmpro_payment_method span { | |
display: inline-block; | |
} | |
#pmpro_payment_method span a { | |
background-position: bottom left; | |
background-repeat: no-repeat; | |
background-size: contain; | |
border: none; | |
display: inline-block; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Change currencies depending on Paid Memberships Pro level. | |
Add this code to your active theme's functions.php or a custom plugin. | |
This is just an example that will need to be tweaked for your needs. | |
Other places to look into swapping currencies: | |
* Levels page. | |
* Invoices page. | |
* In emails. | |
* In membership levels table in admin. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Filter to modify the days prior to renewal that the Recurring Payment Email Reminders Add On | |
* sends members the membership_recurring email notifcation. | |
* | |
* Add this code below to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function custom_pmpro_upcoming_recurring_payment_reminder( $rec_array ) { | |
$rec_array = array ( 30 => 'membership_recurring', 14 => 'membership_recurring', 7 => ' membership_recurring' ); | |
return $rec_array; |
NewerOlder