Skip to content

Commit

Permalink
Added content, levels, and delay params to the pmpro_member_shortcode…
Browse files Browse the repository at this point in the history
…_access filter.
  • Loading branch information
Jason Coleman authored and Jason Coleman committed Oct 25, 2017
1 parent 81c15da commit 2408cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shortcodes/membership.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ 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 );
$hasaccess = apply_filters( 'pmpro_member_shortcode_access', $hasaccess, $content, $levels, $delay );

//to show or not to show
if($hasaccess)
Expand Down

0 comments on commit 2408cc9

Please sign in to comment.