Core Function
View Source on Trac ↗ wp_check_post_lock()
wp_check_post_lock( mixed $post ) Determines whether the post is currently being edited by another user.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (int | | WP_Post) $post ID or object of the post to check for editing. Required |
Return Value
((int)
(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.
Function Information
Since Version
2.5.0
Source File
wp-admin/includes/post.php
Advertisement