This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This is accurate as of WordPress 4.9.
There are a few TODOs left. Please bear with me.
<?php | |
/** | |
* pmpro_hide_acf_fields This code will filter ACF fields added to custom templates using the post's membership requirements. | |
* | |
* Add this code to your PMPro Customizations Plugin | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
* | |
* https://www.advancedcustomfields.com/resources/acf-format_value/ | |
* | |
* @param mixed $value Value which was loaded from the database |
<?php | |
/** | |
* Plugin Name: HM Autoloader | |
* Description: Provides a standard autoloader utility for the site to use | |
* Author: Human Made Limited | |
* Author URI: http://hmn.md/ | |
*/ | |
namespace HM; |
This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This is accurate as of WordPress 4.9.
There are a few TODOs left. Please bear with me.
<?php | |
/** | |
* Show start date of current membership on the members list | |
* and members list CSV export. | |
* | |
* By default, PMPro will show the "Join Date" on the members list, | |
* which is the date the WP user was created. If you need to know | |
* the date the user upgraded to their current level, you can | |
* add this code to your active theme's functions.php or a custom plugin. | |
*/ |
<?php | |
if ( true == apply_filters( 'is_gdpr', true ) ) { | |
add_filter( 'pre_comment_user_ip', function( $ip ) { | |
$packed_in_addr = inet_pton( $ip ); | |
if ( 4 == strlen( $packed_in_addr ) ) { | |
return inet_ntop( inet_pton( $ip ) & inet_pton( '255.255.0.0' ) ); | |
} else { | |
return inet_ntop( inet_pton( $ip ) & inet_pton( 'ffff:ffff:ffff:ffff:0000:0000:0000:0000' ) ); | |
} |
<?php | |
/** | |
* GDPR-Compliance class. | |
* | |
* @since 1.0 | |
* @author Aristeides Stathopoulos @aristath | |
*/ | |
/** | |
* The Fusion_CS_GDPR object. |
<?php | |
/** | |
* Sort meta-field company for PMPro member directory | |
* | |
* @param [type] $sqlQuery [description] | |
* @param [type] $levels [description] | |
* @param [type] $s [description] | |
* @param [type] $pn [description] | |
* @param [type] $limit [description] | |
* @param [type] $start [description] |
#Check from Core PMPro | |
SELECT DISTINCT | |
mu.user_id, | |
mu.membership_id, | |
mu.startdate, | |
mu.enddate, | |
um.meta_value AS notice | |
FROM wp_pmpro_memberships_users AS mu | |
LEFT JOIN wp_usermeta AS um ON um.user_id = mu.user_id | |
AND um.meta_key = 'pmpro_expiration_notice' |
<?php | |
if ( !function_exists( 'stick_scroll_filter_wp_list_tables' ) ) { | |
function stick_scroll_filter_wp_list_tables() { | |
$screen = get_current_screen(); | |
$base = $screen->base; | |
$type = $screen->post_type; | |
$name = $screen->id; | |
if ( (($base === 'edit') && ($type == 'page' || $type == 'post')) && (wp_script_is( 'jquery', 'done' )) ) | |
{ ?> | |
<style type="text/css"> |
<?php | |
/* | |
Plugin Name: Instrument Hooks for WordPress | |
Plugin URI: http://bueltge.de/ | |
Description: Instruments Hooks for a Page. Outputs during the Shutdown Hook after add get-params <code>?instrument=hooks</code>. | |
Version: 0.0.1 | |
Author: Frank Bültge | |
Author URI: http://bueltge.de/ | |
*/ |