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.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
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:2955wp_ajax_wp_remove_post_lock()wp-admin/includes/post.php:1737wp_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.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.0.4 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.