A WordPress-centric search engine for devs and theme authors



override_post_lock ›

Since3.6.0
Deprecatedn/a
apply_filters( 'override_post_lock', true, $post, $user )
Parameters: (3)
  • (bool) $override Whether to allow overriding post locks. Default true.
    Required: Yes
  • (WP_Post) $post Post object.
    Required: Yes
  • (WP_User) $user User object.
    Required: Yes
Defined at:
Codex:

Filters whether to allow the post lock to be overridden.

Returning a falsey value to the filter will disable the ability to override the post lock.





Source

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