Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…hips-pro into dev
  • Loading branch information
Jason Coleman authored and Jason Coleman committed Oct 25, 2017
2 parents 85e7438 + 782a53f commit 81c15da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adminpages/reports/memberships.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ function pmpro_report_memberships_widget() {

$pmpro_levels = $reordered_levels;
}

$pmpro_levels = apply_filters( 'pmpro_report_levels', $pmpro_levels );
?>
<span id="pmpro_report_memberships">
<table class="wp-list-table widefat fixed striped">
Expand Down
3 changes: 3 additions & 0 deletions shortcodes/membership.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81c15da

Please sign in to comment.