Answers for "password required wp"

PHP
0

password required wp

//post id is optional
if(post_password_required($post_id)) {}
//or
if(!empty($post->post_password)){
   // do some stuff
}
Posted by: Guest on December-10-2020

Code answers related to "password required wp"

Browse Popular Code Answers by Language