wp_check_post_lock_window
Это хук WordPress - wp_check_post_lock_window. Плагин его просто использует.
This filter is documented in WP's wp-admin/includes/ajax-actions.php
Использование
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
Где вызывается хук
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