wp_set_post_lock ( $post_id )
- (int|WP_Post) post_id ID or object of the post being edited.
- (array|false) Array of the lock time and user ID. False if the post does not exist, or there is no current user.
- Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Mark the post as currently being edited by the current user