How To Change POP3 Cron Time


Home Forums Front End PM PRO How To Change POP3 Cron Time

This topic is: Not Resolved

This topic contains 2 replies, has 2 voices, and was last updated by  shamim 1 week, 2 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25564

    Kash
    Participant

    Hi,

    I’ve setup POP3, but would like the cron to run every minute. I’ve changed this setting from 60 to 1, but it’s still running hourly:
    Sending Interval.
    1
    Announcement sending Interval in minutes.

    Thanks for your help in advance!

    #25568

    Kash
    Participant

    I ended up using the WPCrontrol Plugin, but I’d still like to know if this is something that can be set in the FEP Settings?

    Thanks.

    #25592

    shamim
    Keymaster

    Add following code in your theme’s (child theme’s if you are using) functions.php and keep there.

    add_filter( 'cron_schedules', function( $schedules ){
    	$schedules['every_minute'] = array(
    		'interval' => MINUTE_IN_SECONDS,
    		'display'  => __('Every Minute', 'front-end-pm'),
    	);
    	return $schedules;
    });
    

    Then add following code in your theme’s (child theme’s if you are using) functions.php. Then refresh your website couple of times then remove following code.

    add_action( 'init', function(){
    	if ( wp_next_scheduled( 'fep_pop3_event' ) ) {
    		wp_clear_scheduled_hook( 'fep_pop3_event' );
    	}
    	wp_schedule_event( time(), 'every_minute', 'fep_pop3_event' );
    });
    
Viewing 3 posts - 1 through 3 (of 3 total)

You need to purchase ‘Front End PM PRO’ to reply in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.