wp_check_post_lock_window
This is a WordPress - wp_check_post_lock_window hook. The plugin just uses it.
This filter is documented in WP's wp-admin/includes/ajax-actions.php
Usage
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.
Default: 150
Where the hook is called
wp_check_post_lock_window
woocommerce/src/Internal/Admin/Orders/EditLock.php 41
$time_window = apply_filters( 'wp_check_post_lock_window', 150 ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingSinceComment