apply_filters( ‘override_post_lock’, bool $override, WP_Post $post, WP_User $user )

In this article

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

$overridebool
Whether to allow the post lock to be overridden. Default true.
$postWP_Post
Post object.
$userWP_User
The user with the lock for the post.

Source

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

Changelog

VersionDescription
3.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.