Skip to content

wpt_recent_tweet_threshold

github-actions[bot] edited this page Jun 14, 2026 · 1 revision

Modify the expiration window for recent status updates. This value does flood control, to prevent a runaway process from sending multiple status updates. Default 30 seconds.

Auto-generated Example

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

Parameters

  • int $expire Integer representing seconds. How long the transient will exist.

Returns

int

Files

apply_filters( 'wpt_recent_tweet_threshold', 30 )

← All Hooks

Clone this wiki locally