Display content if course is connected to membership

Home Forums Legacy Support Support queries How-to & Troubleshooting Display content if course is connected to membership

Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #170425
    dantwah
    Spectator
    Hi! I would like to show certain info on the course page based on whether a course is connected to a membership (in woocommerce memberships). what if statement can i use for this? kind regards
    #170519
    Diana
    Participant
    @dantwah, You have to check the post meta, if the membership level is connected with the course then it will show something $membership = get_post_meta($course->ID,'vibe_pmpro_membership',true); Fetch the post meta and then check through if condition. If this post meta is null then do not show anything
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Display content if course is connected to membership’ is closed to new replies.