#31: wp_check_post_lock_window

The wp_check_post_lock_window filter allows you to modify the post lock window duration.

It is evaluated in:

wp_check_post_lock_window accepts a single argument:

  1. int $interval The interval in seconds the post lock window should last. Default is 120.

Example:

The following example extends the post lock window to 2.5 minutes, or 150 seconds.

View the code example on Gist.

Have a suggested improvement? You can fork the Gist and comment back with the link. If all is agreeable, I’ll merge in your changes. Crowd-sourced documentation FTW!

Leave a Reply

Your email address will not be published. Required fields are marked *