<?php
/** 
 * @package     VikRestaurants
 * @subpackage  core
 * @author      E4J s.r.l.
 * @copyright   Copyright (C) 2023 E4J s.r.l. All Rights Reserved.
 * @license     http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @link        https://vikwp.com
 */

// No direct access
defined('ABSPATH') or die('No script kiddies please!');

?>

<!-- INSTRUCTIONS -->

<div class="cron-instructions">
    
    <p>
        <?php _e('A cron job can be scheduled at server-level by following the instructions below:', 'vikrestaurants'); ?>
    </p>

    <ol>
        <li>
            <?php _e('Create a cron job through the <b>Cron Jobs List</b> in the settings tab.', 'vikrestaurants'); ?>
        </li>
        
        <li>
            <?php _e('Access your server control panel (e.g. <em>CPanel</em> or <em>Siteworx</em>) in order to schedule a job.', 'vikrestaurants'); ?>
        </li>
        
        <li>
            <?php _e('Visit the cron job section and click the button that will be used to create a new schedule.', 'vikrestaurants'); ?>
        </li>
        
        <li>
            <?php _e('Select an interval that should be suitable to your needs (e.g. every 30 minutes).', 'vikrestaurants'); ?>
        </li>
        
        <li>
            <?php _e('Assign the cron job to the <b>wp-cron.php</b> file located in the root of your website (an absolute path should be used here).', 'vikrestaurants'); ?>
        </li>
    </ol>

    <p>
        <?php _e('If you have no idea how to schedule a cron job through the control panel of your server, you should contact your hosting provider.', 'vikrestaurants'); ?>
    </p>

    <p>
        <?php _e('Note that, even if you don\'t schedule a server cron, the jobs that you created from VikRestaurants are still periodically executed, but only in case your website is visited by some users.', 'vikrestaurants'); ?>
        <br />      
        <?php _e('A server cron job is indeed used to prevent this limitation, as the server periodically invokes itself, just to simulate a user ping/visit.', 'vikrestaurants'); ?>
    </p>
    
</div>
