How To Change POP3 Cron Time


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

This topic is: Not Resolved
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 Hasan
    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 create topic in this support forum.

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