wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



show_post_locked_dialog › WordPress Filter Hooks

Seit3.6.0
Veraltetn/v
apply_filters( 'show_post_locked_dialog', true, $post, $user )
Parameter: (3)
  • (bool) $display Whether to display the dialog. Default true.
    Erforderlich: Ja
  • (WP_Post) $post Post object.
    Erforderlich: Ja
  • (WP_User) $user The user with the lock for the post.
    Erforderlich: Ja
Definiert in:
Codex:

Filters whether to show the post locked dialog.

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





Quellcode

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