override_post_lock WordPress Filter Hook
The override_post_lock WordPress hook is used to override the locking mechanism for a specific post type. This can be useful for custom post types where you want to allow multiple authors to edit the same post.
apply_filters( 'override_post_lock', bool $override , WP_Post $post , WP_User $user ) #
Filters whether to allow the post lock to be overridden.
Description
Returning false from the filter will disable the ability to override the post lock.
Parameters
Source
Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |