override_post_lock

Advertisement

Summery Summery

Filters whether to allow the post lock to be overridden.

Syntax Syntax

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

Description Description

Returning false from the filter will disable the ability to override the post lock.

Parameters 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 Source

File: wp-admin/includes/post.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.