Wrapping html
-
Sorry to bug. I am almost ready to launch my site but just have to get this piece of code modified to show to only PMP “Free”/non members only. user leveles=0,3
this is the code:
if ( ! function_exists( 'beAds_By_ID_Input' ) ) { function beAds_By_ID_Input($randomID){ /*== Drop-down Value ==*/ $adsdropdown = trim(get_post_meta($randomID, 'meta-box-dropdown', true)); /*== Images ==*/ $imageAdsURL = trim(get_post_meta($randomID, 'be-img-url', true)); /*== HTML ==*/ $htmlAds = get_post_meta($randomID, 'meta-html-code', true); /*== Video ==*/ $videoAds = get_post_meta($randomID, 'meta-box-text', true); /*== Check Ads Type ==*/ if($adsdropdown == 'image'){ $beadsimgSrc = get_the_post_thumbnail($randomID, 'full', 'string'); $returnValue = '<a href='.$imageAdsURL.' target="_blank">'.$beadsimgSrc.'</a>'; }elseif($adsdropdown == 'html'){ $returnValue = "<div class='betube-html-content'>$htmlAds</div>"; }elseif($adsdropdown == 'video'){ $returnValue = betube_adv_video_filter($videoAds); } return $returnValue; } }
is there a way to make this code only active for those roles mentioned? (0,3)
Ive tried wrapping in shortcode and tried code like !pmpro_hasMembershipLevel but it keeps breaking site.
Any clues would be greatly appreciated. once again just need to get this going and ill be ready to start accepting new paid memberships via stripe.
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Wrapping html’ is closed to new replies.