wp_set_post_lock


wp_set_post_lock ( $post_id )

Parameters:
  • (int) $post_id ID 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.
Defined at:

Description

Mark the post as currently being edited by the current user

Related Functions

wp_check_post_lock, wp_set_post_cats, wp_refresh_post_lock, wp_get_post_cats, wp_set_post_tags

Top Google Results

User discussions

wpseek mobile