wordpress / latest / hooks / override_post_lock.html

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

$override bool
Whether to allow the post lock to be overridden. Default true.
$post WP_Post
Post object.
$user WP_User
The user with the lock for the post.

Source

File: wp-admin/includes/post.php. View all references

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

Used By

Used By Description

Changelog

Version Description
3.6.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/override_post_lock