wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



show_post_locked_dialog › WordPress Filter Hooks

Da3.6.0
Deprecaton/a
apply_filters( 'show_post_locked_dialog', true, $post, $user )
Parametri: (3)
  • (bool) $display Whether to display the dialog. Default true.
    Richiesto:
  • (WP_Post) $post Post object.
    Richiesto:
  • (WP_User) $user The user with the lock for the post.
    Richiesto:
Definito a:
Codex:

Filters whether to show the post locked dialog.

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





Sorgenti

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