📜  需要密码 wp - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:25.847000             🧑  作者: Mango

代码示例1
//post id is optional
if(post_password_required($post_id)) {}
//or
if(!empty($post->post_password)){
   // do some stuff
}