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
// reference for Wordpress Functions | |
https://codex.wordpress.org/Function_Reference | |
https://developer.wordpress.org/ | |
/***********************/ | |
Display terms with pagination start | |
if ( get_query_var( 'paged' ) ) | |
$paged = get_query_var('paged'); |
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 (line 8-32) to your PMPro Customizations Plugin. | |
* Inside your checkout email for members/admins, add any attributes and it will replace the value if there is a value available. | |
* E.g Your number is !!mobile!!, see line 24 for all available attributes to use in Email Template Admin Editor | |
*/ | |
function my_pmpro_email_body( $body, $email ) { | |
//only checkout emails | |
if ( false !== strpos( $email->template, "checkout" ) ) { |
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 | |
/** | |
* This will check for !!company_name!! in the emails body and replace it with the 'company_name' metadata (created by Register Helper). | |
* Add this code to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function my_pmpro_email_body( $body, $email ) { | |
//only checkout emails | |
if ( false !== strpos( $email->template, "checkout" ) ) { |
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 | |
/** | |
* Custom Fields for various sections of checkout | |
*/ | |
function my_pmpro_rh_custom_fields() { | |
global $current_user; | |
// don't break if Register Helper is not loaded | |
if ( ! function_exists( 'pmprorh_add_registration_field' ) ) { | |
return false; |
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 | |
/** | |
* Change body text of email according to level checkout. | |
* Assumes level ID is 1. | |
* Add this code to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function my_pmpro_email_body( $body, $email ) { |
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 | |
/* | |
Plugin Name: Member payment report | |
Plugin URI: http://www.michiganjaycees.org | |
Description: this is a report showing the payments that have processed | |
Author: Dan Moellering | |
Version: .1 | |
Author URI: http://mdmnow.com | |
*/ | |
add_action('admin_menu', 'member_payment_report_action'); |
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
function modify_status_from_confirmation_message($confirmation_message, $pmpro_invoice) | |
{ | |
global $current_user, $wpdb; | |
$approval_status = null; | |
if(class_exists('PMPro_Approvals')) | |
$approval_status = PMPro_Approvals::getUserApprovalStatus(); | |
if(!empty($approval_status)) |
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 | |
//General code example for checking if a current user is pending or not. | |
global $current_user; | |
//check to see if the user has any membership level | |
if( pmpro_hasMembershipLevel() ) { | |
// Get the current user ID and their level ID for the PMPro Approvals meta. |
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
/* | |
Add SSL Seal to PMPro Checkout Page | |
Add this code to a custom plugin or your active theme's functions.php. | |
Custom code is necessary for this now that PMPro 1.9.3 for security reasons | |
doesn't allow script tags in the SSL Seal setting text area. | |
The example below is for an AlphaSSL certificate. Replace the $seal string below with | |
your own seals code. Be careful if the seal has single quotes in it. |
NewerOlder