- Modifies cron router/UI to display proper status message when WP task
scheduler is configured and cron is not running - Updates sending queue worker and related components to stop (delete) cron when all processing is done
This commit is contained in:
@@ -160,4 +160,13 @@ class Setting extends Model {
|
||||
|
||||
return $setting->save();
|
||||
}
|
||||
}
|
||||
|
||||
public static function getSetting($setting) {
|
||||
return self::where('name', $setting)->findOne();
|
||||
}
|
||||
|
||||
public static function deleteSetting($setting) {
|
||||
$setting = self::where('name', $setting)->findOne();
|
||||
return ($setting) ? $setting->delete() : false;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user