wpseek.com
WordPress开发者和主题制作者的搜索引擎



show_post_locked_dialog › WordPress过滤钩子

Since3.6.0
已弃用n/a
apply_filters( 'show_post_locked_dialog', true, $post, $user )
参数: (3)
  • (bool) $display Whether to display the dialog. Default true.
    Required: Yes
  • (WP_Post) $post Post object.
    Required: Yes
  • (WP_User) $user The user with the lock for the post.
    Required: Yes
定义在:
文档:

Filters whether to show the post locked dialog.

Returning false from the filter will prevent the dialog from being displayed.





源码

if ( ! apply_filters( 'show_post_locked_dialog', true, $post, $user ) ) {