Add filter to disable UM cron jobs

This commit is contained in:
Champ Camba
2018-02-15 17:31:51 +08:00
parent 4cfc247ffe
commit a6164fcf9a
+4
View File
@@ -8,6 +8,10 @@ if ( ! class_exists( 'Cron' ) ) {
class Cron {
public function __construct() {
$um_cron = apply_filters('um_cron_disable', false );
if( $um_cron ) return;
add_filter( 'cron_schedules', array( $this, 'add_schedules' ) );
add_action( 'wp', array( $this, 'schedule_Events' ) );
}