wp_check_post_lock


wp_check_post_lock ( $post_id )

Parameters:
  • (int) $post_id ID of the post to check for editing.
Returns:
  • (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.
Defined at:

Description

Check to see if the post is currently being edited by another user.

Related Functions

wp_set_post_lock, wp_refresh_post_lock, wp_check_comment_flood, wp_check_password, wp_check_locked_posts

Top Google Results

User discussions

wpseek mobile