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

Filters whether to allow the post lock to be overridden.


Description Description

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


Top ↑

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.



Top ↑

Source Source

File: wp-admin/includes/post.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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