wp_check_post_lock ( $post_id )
- (int) $post_id ID of the post to check for editing.
- (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.
- Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Check to see if the post is currently being edited by another user.