# Delay New Posts in RSS Feeds

> Waits 15 minutes before new posts appear in your feeds, giving you time to fix typos before feed readers and newsletters pick them up.

- Type: PHP
- Runs: Run everywhere
- Category: [RSS Feeds](https://wpide.com/library/category/rss/)
- Tags: rss, feeds, publishing
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/delay-posts-in-rss/

## Code

```php
add_filter( 'posts_where', function ( $where, $query ) {
    global $wpdb;

    if ( ! $query->is_main_query() || ! $query->is_feed() ) {
        return $where;
    }

    $minutes = 15;
    $cutoff  = gmdate( 'Y-m-d H:i:s', time() - $minutes * MINUTE_IN_SECONDS );

    return $where . $wpdb->prepare( " AND {$wpdb->posts}.post_date_gmt <= %s", $cutoff );
}, 10, 2 );
```

## Notes

Change $minutes to adjust the delay.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Delay New Posts in RSS Feeds" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
