Filter hook 'wp_check_post_lock_window'

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

Description

Determines whether the post is currently being edited by another user. the user with lock does not exist, or the post is locked by current user.

Occurrences

Filename Line Number
wp-admin/includes/post.php 1723
wp-admin/includes/ajax-actions.php 2945

Parameters

Type Name Description
int|WP_Post $post ID or object of the post to check for editing.

PHP Doc

/**
 * Determines whether the post is currently being edited by another user.
 *
 * @since 2.5.0
 *
 * @param int|WP_Post $post ID or object of the post to check for editing.
 * @return int|false ID of the user with lock. False if the post does not exist, post is not locked,
 *                   the user with lock does not exist, or the post is locked by current user.
 */