wpseek.com
A WordPress-centric search engine for devs and theme authors



show_post_locked_dialog › WordPress Filter Hooks

Since3.6.0
Deprecatedn/a
apply_filters( 'show_post_locked_dialog', true, $post, $user )
Parameters: (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
Defined at:
Codex:

Filters whether to show the post locked dialog.

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





Source

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