-
Notifications
You must be signed in to change notification settings - Fork 4
wpt_edit_sensitivity
github-actions[bot] edited this page Jun 19, 2026
·
5 revisions
Filter the sensitivity used to distinguish between new posts and edits. Default allows up to a 10 second discrepancy in time stamps where post will be treated as new. This is necessary because the post date and modified date can sometimes different by a second on any server.
add_filter(
'wpt_edit_sensitivity',
function( int $sensitivity ) {
// Your code here.
return $sensitivity;
}
);-
int$sensitivityInteger representing seconds. Default 10.
int
apply_filters( 'wpt_edit_sensitivity', 10 )