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



override_post_lock › WordPress Filter Hooks

Seit3.6.0
Veraltetn/v
apply_filters( 'override_post_lock', true, $post, $user )
Parameter: (3)
  • (bool) $override Whether to allow the post lock to be overridden. 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 allow the post lock to be overridden.

Returning false from the filter will disable the ability to override the post lock.





Quellcode

$override = apply_filters( 'override_post_lock', true, $post, $user );