A WordPress-centric search engine for devs and theme authors



show_post_locked_dialog ›

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|bool) $user WP_User object on success, false otherwise.
    Required: Yes
Defined at:
Codex:

Filters whether to show the post locked dialog.

Returning a falsey value to the filter will short-circuit displaying the dialog.





Source

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