diff --git a/adminpages/reports/memberships.php b/adminpages/reports/memberships.php index 91ae4f3bb..cac554414 100644 --- a/adminpages/reports/memberships.php +++ b/adminpages/reports/memberships.php @@ -51,6 +51,8 @@ function pmpro_report_memberships_widget() { $pmpro_levels = $reordered_levels; } + + $pmpro_levels = apply_filters( 'pmpro_report_levels', $pmpro_levels ); ?> diff --git a/shortcodes/membership.php b/shortcodes/membership.php index ac6a51fc4..e90426aea 100644 --- a/shortcodes/membership.php +++ b/shortcodes/membership.php @@ -79,6 +79,9 @@ function pmpro_shortcode_membership($atts, $content=null, $code="") } } + // Filter the $hasaccess so we can overwrite this for other add ons. + $hasaccess = apply_filters( 'pmpro_member_shortcode_access', $hasaccess ); + //to show or not to show if($hasaccess) return do_shortcode($content); //show content