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

Whether to allow the post lock to be overridden. Default true.

$post

Post object.

$user

The user with the lock for the post.


Source

File: wp-admin/includes/post.php

View on GitHub



Changelog

Changelog
Version Description
3.6.0 Introduced.