File: /home/dailygoldindex/www/wp-content/plugins/toolkit/templates/settings.php
<?php
function epc_toolkit_settings_page() {
if (isset($_POST['toggle_wp_cron'])) {
$disable = ($_POST['toggle_wp_cron'] === 'disable');
epc_toggle_wp_cron($disable);
echo '<div class="updated"><p>Cron settings updated. Wait couple minutes and check again</p></div>';
}
$disabled = defined('DISABLE_WP_CRON') && DISABLE_WP_CRON;
?>
<div class="wrap">
<h1>Settings</h1>
<form method="post">
<h2><?php echo $disabled ? 'WP Cron disabled' : 'WP Cron enabled'; ?></h2>
<button type="submit" name="toggle_wp_cron" value="<?php echo $disabled ? 'enable' : 'disable'; ?>" class="button button-primary">
<?php echo $disabled ? 'Enable WP Cron' : 'Disable WP Cron'; ?>
</button>
</form>
</div>
<?php
}