apply_filters( 'wp_check_post_lock_window', int $interval )
- Since
- 3.3.0
Filters the post lock window duration.
Compatibility
- WordPress
- since 3.3.0
- 6.7.10
- 6.8.11
- 6.9.10
- 7.0.7
- 7.1.3
Present in every tracked release (6.7.10 to 7.1.3).
Parameters
$intervalint- The interval in seconds the post lock duration should last, plus 5 seconds. Default 150.
Where this hook fires · 2
wp-admin/includes/ajax-actions.php:2962wp_ajax_wp_remove_post_lock()wp-admin/includes/post.php:1755wp_check_post_lock()
Source code
* * @since 3.3.0 * * @param int $interval The interval in seconds the post lock duration * should last, plus 5 seconds. Default 150. */ $new_lock = ( time() - apply_filters( 'wp_check_post_lock_window', 150 ) + 5 ) . ':' . $active_lock[1]; update_post_meta( $post_id, '_edit_lock', $new_lock, implode( ':', $active_lock ) ); wp_die( 1 );} /** * Handles dismissing a WordPress pointer via AJAX.Changelog
Introduced in 3.3.0. Unchanged from 6.7.10 through 7.1.3.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.10 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.