WPDev.one
Core Function
View Source on Trac ↗

wp_set_post_lock()

wp_set_post_lock( mixed $post )

Marks the post as currently being edited by the current user.

Parameters 1 required

Name / Type Description
(int

| WP_Post) $post ID or object of the post being edited.

Required

Return Value

((array)
(array | false) { Array of the lock time and user ID. False if the post does not exist, or there is no current user.

Function Information

Since Version
2.5.0
Source File
wp-admin/includes/post.php
Advertisement