wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



show_post_locked_dialog › Filtr WordPress Hooks

Od3.6.0
Przestarzałyn/a
apply_filters( 'show_post_locked_dialog', true, $post, $user )
Parametry: (3)
  • (bool) $display Whether to display the dialog. Default true.
    Wymagane: Tak
  • (WP_Post) $post Post object.
    Wymagane: Tak
  • (WP_User) $user The user with the lock for the post.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters whether to show the post locked dialog.

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





Źródło

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