Skip to content

Commit

Permalink
Merge pull request strangerstudios#534 from andrewlimaza/filter-for-m…
Browse files Browse the repository at this point in the history
…embership-shortcode-access

Enhancement: Filter for membership shortcode access
  • Loading branch information
ideadude authored Oct 25, 2017
2 parents b67e4e1 + 4d4b5b5 commit 8e63c27
Showing 1 changed file with 3 additions and 0 deletions.
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 8e63c27

Please sign in to comment.