W3cubDocs

/WordPress

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

$new_lock = ( time() - apply_filters( 'wp_check_post_lock_window', 150 ) + 5 ) . ':' . $active_lock[1];

Changelog

Version Description
3.3.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_check_post_lock_window