PHP Function to check if a gallery is secure or not

Bring Your Business to LifeSupportImage StorePHP Function to check if a gallery is secure or not

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #50023
    Xpark Media
    Keymaster
    function is_gallery_protected($post =false){
    if(empty($post))
    global $post;
    if(!empty($post->post_password))
    return true
    return false;
    }

    The post is the gallery object that you want to check or the current gallery (post)

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.