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:

Description

Marks 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_first_block, wp_get_post_cats

Top Google Results

User discussions

wpseek mobile