From 2408cc913060a6682a1186f4a452ddb8b013c39f Mon Sep 17 00:00:00 2001 From: Jason Coleman Date: Wed, 25 Oct 2017 23:10:02 +0200 Subject: [PATCH] Added content, levels, and delay params to the pmpro_member_shortcode_access filter. --- shortcodes/membership.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shortcodes/membership.php b/shortcodes/membership.php index e90426aea..cdbc95c43 100644 --- a/shortcodes/membership.php +++ b/shortcodes/membership.php @@ -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)