wpseek.com
A WordPress-centric search engine for devs and theme authors



override_post_lock › WordPress Filter Hooks

Since3.6.0
Deprecatedn/a
apply_filters( 'override_post_lock', true, $post, $user )
Parameters: (3)
  • (bool) $override Whether to allow the post lock to be overridden. Default true.
    Required: Yes
  • (WP_Post) $post Post object.
    Required: Yes
  • (WP_User) $user The user with the lock for the post.
    Required: Yes
Defined at:
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.





Source

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