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 a falsey value to the filter will disable the ability to override the post lock.


Parameters

$override

(bool) Whether to allow overriding post locks. Default true.

$post

(WP_Post) Post object.

$user

(WP_User) User object.


Source

File: wp-admin/includes/post.php

View on GitHub



Changelog

Changelog
Version Description
WP-3.6.0 Introduced.