Last active
December 20, 2015 14:39
-
-
Save WerdsWords/6148749 to your computer and use it in GitHub Desktop.
#31: wp_check_post_lock_window
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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