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 | |
/* | |
* Add Additional Register Helper fields for: Radio and Checkbox | |
* Save All To User Profile Page | |
* Applies To All Levels | |
*/ | |
// We have to put everything in a function called on init, so we are sure Register Helper is loaded. | |
function pmpro_register_helper_add_radio_checkbox_fields() { |
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 | |
/* | |
* By default the pmpro-bbpress add on will hide topics and replies within a forum, | |
* but will still show the member forums in the forums list. | |
* | |
* You can use this code to hide forums from that list if the logged in member | |
* does not have access to that forum. | |
*/ | |
//Tell PMPro to hide forums if member does not have access. |
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 | |
/* | |
* Add Additional Register Helper field for: Stage/ Zoom Name | |
* Save All To User Profile Page | |
* Applies To All Levels | |
*/ | |
// We have to put everything in a function called on init, so we are sure Register Helper is loaded. | |
function pmpro_register_helper_add_fields() { |
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 the settings of email frequency sent when using the Extra Expiration Warning Emails Add On | |
* https://www.paidmembershipspro.com/add-ons/extra-expiration-warning-emails-add-on/ | |
* | |
* Update the $settings array to your list of number of days => ''. | |
* Read the Add On documentation for additional customization using this filter. | |
*/ | |
function custom_pmproeewe_email_frequency( $settings = array() ) { |
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 the featured image and include an overlay if the post is protected. | |
* Use this with the recipe here: https://gist.github.com/kimcoleman/299bb458310e00d7282c090110c6b4f0 | |
* | |
* 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. | |
* | |
*/ | |
/** |
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 | |
/* | |
* Add Additional Register Helper fields for: 1-3 File Uploads | |
* Save All To User Profile Page | |
* Applies To All Levels | |
*/ | |
// We have to put everything in a function called on init, so we are sure Register Helper is loaded. | |
function pmpro_register_helper_add_upload_fields() { |
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 | |
function filter_pmpro_default_country( $default_country ) { | |
// Set country code to "CA" for Canada. | |
$default_country = "CA"; | |
return $default_country; | |
} | |
add_filter( 'pmpro_default_country', 'filter_pmpro_default_country' ); |
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 | |
// Add this code below to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
function adjusting_the_pmpro_levels_array( $levels ) { | |
if( !pmpro_hasMembershipLevel() ) { | |
unset( $levels[14] ); // hide level 14 from non-members | |
} | |
return $levels; |
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. | |
/** | |
* This recipe creates custom fields for your PMPro checkout 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/ | |
*/ | |
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 | |
/* | |
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[ |
OlderNewer