Start a new topic

User role to be able to download videos


I am trying to set a wp function current_user_can to the download button so only a person with a right can download the video. Unfortunately I cannot find the piece of code which adds the download button to the single-exc_video_post.php as it's a part of the_content();... I only was able to find a mention about download button in script.js about "video[data-download="1"]". Can you please tell me where can I find a php function which decides the button can or can't appear so I can add the current_user_can function to it?



Login or Signup to post a comment