Bring Your Business to Life › Support › Image Store › PHP Function to check if a gallery is secure or not › Reply To: PHP Function to check if a gallery is secure or not
September 22, 2012 at 11:36 pm #50023
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)