Skip to content

wpt_edit_sensitivity

github-actions[bot] edited this page Jun 20, 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.

Auto-generated Example

add_filter(
   'wpt_edit_sensitivity',
    function( int $sensitivity ) {
        // Your code here.
        return $sensitivity;
    }
);

Parameters

  • int $sensitivity Integer representing seconds. Default 10.

Returns

int

Files

apply_filters( 'wpt_edit_sensitivity', 10 )

← All Hooks

Clone this wiki locally