wp_set_post_lock
wp_set_post_lock ( $post )
Parameters:- (int|WP_Post) post ID or object of the post being edited.
Returns:- (array|false) {
Array of the lock time and user ID. False if the post does not exist, or there
is no current user.
@type int $0 The current time as a Unix timestamp.
@type int $1 The ID of the current user.
}
Defined at: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
Marks the post as currently being edited by the current user.