Title: wp_check_post_lock_window
Published: April 25, 2014
Last modified: February 24, 2026

---

# apply_filters( ‘wp_check_post_lock_window’, int $interval )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_check_post_lock_window/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_check_post_lock_window/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_check_post_lock_window/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_check_post_lock_window/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/wp_check_post_lock_window/?output_format=md#wp--skip-link--target)

Filters the post lock window duration.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_check_post_lock_window/?output_format=md#parameters)󠁿

 `$interval`int

The interval in seconds the post lock duration should last, plus 5 seconds. Default
150.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wp_check_post_lock_window/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/ajax-actions.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/includes/ajax-actions.php#L2948)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/ajax-actions.php#L2948-L2948)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_check_post_lock_window/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_check_post_lock()](https://developer.wordpress.org/reference/functions/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()](https://developer.wordpress.org/reference/functions/wp_ajax_wp_remove_post_lock/)`wp-admin/includes/ajax-actions.php` |

Handles removing a post lock via AJAX.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_check_post_lock_window/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.3.0](https://developer.wordpress.org/reference/since/3.3.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_check_post_lock_window%2F)
before being able to contribute a note or feedback.