Skip to content

Instantly share code, notes, and snippets.

@WerdsWords
Last active December 20, 2015 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WerdsWords/6148749 to your computer and use it in GitHub Desktop.
Save WerdsWords/6148749 to your computer and use it in GitHub Desktop.
#31: wp_check_post_lock_window
<?php
/**
* Extend post lock interval to 2.5 minutes.
*
* @see wp_ajax_wp_remove_post_lock(), wp_check_post_lock()
*
* @param int $duration The post lock window interval.
*
* @return int The filtered interval.
*/
function wpdocs_post_lock_interval( $interval ) {
return 150;
}
add_filter( 'wp_check_post_lock_window', 'wpdocs_post_lock_interval' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment