wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



show_post_locked_dialog › Hooks de Filtros WordPress

Desde3.6.0
Obsoleton/a
› apply_filters( 'show_post_locked_dialog', true, $post, $user )
Parâmetros: (3)
  • () display Whether to display the dialog. Default true.
    Required: Yes
  • () post Post object.
    Required: Yes
  • () user The user with the lock for the post.
    Required: Yes
Definido em:
Codex:

Filters whether to show the post locked dialog.

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




Fonte

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