On this page
apply_filters( 'wp_check_post_lock_window', int $interval )
Filters the post lock window duration.
Parameters
$intervalint-
The interval in seconds the post lock duration should last, plus 5 seconds. Default 150.
Source
File: wp-admin/includes/ajax-actions.php. View all references
$new_lock = ( time() - apply_filters( 'wp_check_post_lock_window', 150 ) + 5 ) . ':' . $active_lock[1];
Related
Used By
| Used By | Description |
|---|---|
| wp_check_post_lock() wp-admin/includes/post.php | Determines whether the post is currently being edited by another user. |
| wp_ajax_wp_remove_post_lock() wp-admin/includes/ajax-actions.php | Ajax handler for removing a post lock. |
Changelog
| Version | Description |
|---|---|
| 3.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_check_post_lock_window