wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



show_post_locked_dialog › Les Filtres WordPress

Depuis3.6.0
Dépréciéen/a
apply_filters( 'show_post_locked_dialog', true, $post, $user )
Paramètres: (3)
  • (bool) $display Whether to display the dialog. Default true.
    Requis: Oui
  • (WP_Post) $post Post object.
    Requis: Oui
  • (WP_User) $user The user with the lock for the post.
    Requis: Oui
Défini(e) dans:
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 ) ) {