Example #1
0
    ?>
			<a id="intercom-info" class="thickbox page-title-action" href="<?php 
    echo esc_url(wp_nonce_url(add_query_arg(array('action' => 'load_enable_support', 'width' => '600', 'height' => '420'), self_admin_url('admin-ajax.php')), 'hmbkp_nonce'));
    ?>
"><span class="dashicons dashicons-admin-users"></span>&nbsp;<?php 
    _e('Enable Support', 'backupwordpress');
    ?>
</a>
		<?php 
}
?>

	</h1>

	<?php 
if (is_backup_possible()) {
    ?>

		<?php 
    include_once HMBKP_PLUGIN_PATH . 'admin/backups.php';
    ?>

		<p class="howto"><?php 
    printf(__('If you\'re finding BackUpWordPress useful, please %1$s rate it on the plugin directory%2$s.', 'backupwordpress'), '<a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/backupwordpress">', '</a>');
    ?>
</p>

		<?php 
    include_once HMBKP_PLUGIN_PATH . 'admin/upsell.php';
    ?>
Example #2
0
 /**
  * Function to run when the schedule cron fires.
  *
  * @param $schedule_id
  */
 public function schedule_hook_run($schedule_id)
 {
     if (!is_backup_possible()) {
         return;
     }
     $schedules = Schedules::get_instance();
     $schedule = $schedules->get_schedule($schedule_id);
     if (!$schedule) {
         return;
     }
     $schedule->run();
 }