post_password_required

最后更新于:2021-11-27 17:08:31

apply_filters( ‘post_password_required’, bool $required, GC_Post $post )

Filters whether a post requires the user to supply a password.

参数

$required

(bool)
Whether the user needs to supply a password. True if password has not been provided or is incorrect, false if password has been supplied or is not required.

$post

(GC_Post)
Post object.

源文件

文件: gc-includes/post-template.php

View on Trac