wp_check_post_lock_window
Filters the post lock window duration.
Usage
add_filter( 'wp_check_post_lock_window', 'wp_kama_check_post_lock_window_filter' );
/**
* Function for `wp_check_post_lock_window` filter-hook.
*
* @param int $interval The interval in seconds the post lock duration should last, plus 5 seconds.
*
* @return int
*/
function wp_kama_check_post_lock_window_filter( $interval ){
// filter...
return $interval;
}
- $interval(int)
- The interval in seconds the post lock duration should last, plus 5 seconds.
Default: 150
Changelog
| Since 3.3.0 | Introduced. |
Where the hook is called
wp_check_post_lock_window
wp_check_post_lock_window
wp-admin/includes/ajax-actions.php 2948
$new_lock = ( time() - apply_filters( 'wp_check_post_lock_window', 150 ) + 5 ) . ':' . $active_lock[1];
wp-admin/includes/post.php 1741
$time_window = apply_filters( 'wp_check_post_lock_window', 150 );