Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

password required wp

//post id is optional
if(post_password_required($post_id)) {}
//or
if(!empty($post->post_password)){
   // do some stuff
}
 
PREVIOUS NEXT
Tagged: #password #required #wp
ADD COMMENT
Topic
Name
5+4 =