wp_check_post_lock_window
Filters the post lock window duration.
Использование
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.
По умолчанию: 150
Список изменений
С версии 3.3.0 | Введена. |
Где вызывается хук
wp_check_post_lock_window
wp_check_post_lock_window
wp-admin/includes/ajax-actions.php 2945
$new_lock = ( time() - apply_filters( 'wp_check_post_lock_window', 150 ) + 5 ) . ':' . $active_lock[1];
wp-admin/includes/post.php 1723
$time_window = apply_filters( 'wp_check_post_lock_window', 150 );