WordPress.org

Forums

YouTube
show only video if the user's login page - Youtube (1 post)

  1. BookDk
    Member
    Posted 1 year ago #

    This is how I got put this plugin on the page, and it is such that the videos which enters via youtube must be logged in to be able to see

    http://wordpress.org/plugins/youtube-embed-plus/

    I've tried to throw this piece of code into the page, but it does not work quite as I want it.

    <?php if ( is_user_logged_in() ) {
                 echo "Member Content";
           }else{
                 echo "Sorry Guest";
     ?>

    as said content with video, could be shown when you are log into the site, so I hear some of you about something known to the revealed what line you should write the code into?

    https://wordpress.org/plugins/youtube-embed-plus/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • YouTube
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags