Filter hook 'override_post_lock'

in WP Core File wp-admin/includes/post.php at line 1854

Description

Filters whether to allow the post lock to be overridden. Returning false from the filter will disable the ability to override the post lock.

Occurrences

Filename Line Number
wp-admin/includes/post.php 1854

Parameters

Type Name Description
bool $override Whether to allow the post lock to be overridden. Default true.
WP_Post $post Post object.
WP_User $user The user with the lock for the post.

PHP Doc

/**
		 * Filters whether to allow the post lock to be overridden.
		 *
		 * Returning false from the filter will disable the ability
		 * to override the post lock.
		 *
		 * @since 3.6.0
		 *
		 * @param bool    $override Whether to allow the post lock to be overridden. Default true.
		 * @param WP_Post $post     Post object.
		 * @param WP_User $user     The user with the lock for the post.
		 */