• Resolved naresh11381

    (@naresh11381)


    Hi there,
    Great plugin! Is there any chance you could add some more options to the purge schedule? 2-3 months is how long most of my clients need to look back. A 12-24 month option is also great for subscription sites.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author JWardee

    (@wardee)

    Hi @naresh11381, glad you like the plugin!

    You can actually add these with the cron_schedules filter and WP Mail Catcher will automatically pick them up. As per the docs linked above you could do something like:

    function my_add_intervals($schedules) {
        // add a 'weekly' interval
        $schedules['weekly'] = array(
            'interval' => 604800,
            'display' => __('Once Weekly')
        );
        $schedules['monthly'] = array(
            'interval' => 2635200,
            'display' => __('Once a month')
        );
        return $schedules;
    }
    add_filter( 'cron_schedules', 'my_add_intervals');
    Thread Starter naresh11381

    (@naresh11381)

    That’s a perfect solution thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Purge schedule’ is closed to new replies.