'enable'=>array('label'=>'Enable '.$this->plugin_name,'desc'=>'Enable this plugin and allow requests to wp-cron.php only with the appended secret parameter.','type'=>'yesno'),
'enable'=>array(
'secret_string'=>array('label'=>'Secret string','desc'=>'The secret parameter that needs to be appended to wp-cron.php requests.','type'=>'text'),
'enable_scheduled_post_validation'=>array('label'=>'Enable scheduled post validation','desc'=>'In some rare cases it can happen that even when running wp-cron via a scheduled system cron job posts miss their schedule. This feature makes sure that there is a scheduled event for each scheduled post.','type'=>'yesno'),
'desc'=>sprintf(__('Enable this plugin and allow requests to %s only with the appended secret parameter.','wp-cron-control'),'<code>wp-cron.php</code>'),
'type'=>'yesno'
),
'secret_string'=>array(
'label'=>__('Secret string','wp-cron-control'),
'desc'=>sprintf(__('The secret parameter that needs to be appended to %s requests.','wp-cron-control'),'<code>wp-cron.php</code>'),
'type'=>'text'
),
'enable_scheduled_post_validation'=>array(
'label'=>__('Enable scheduled post validation','wp-cron-control'),
'desc'=>sprintf(__('In some rare cases, it can happen that even when running %s via a scheduled system cron job, posts miss their schedule. This feature makes sure that there is a scheduled event for each scheduled post.','wp-cron-control'),'<code>wp-cron</code>'),
$this->settings_texts['secret_string']['desc']=$this->settings_texts['secret_string']['desc']." Cannot be changed as it is defined via WP_CRON_CONTROL_SECRET";
$this->settings_texts['secret_string']['desc']=$this->settings_texts['secret_string']['desc'].sprintf(__('Cannot be changed as it is defined via %s.','wp-cron-control'),"<code>WP_CRON_CONTROL_SECRET</code>");
<p>You enabled wp-cron-control. To make sure that scheduled tasks are still executed correctly you will need to setup a system cron job that will call wp-cron.php with the secret parameter defined in the settings.</p>
<p><?phpprintf(__('You enabled %s. To make sure that scheduled tasks are still executed correctly, you will need to setup a system cron job that will call %s with the secret parameter defined in the settings.','wp-cron-control'),$this->plugin_name,'<code>wp-cron.php</code>');?></p>
<p>
You can either use the function defined in this script and setup a cron job that calls either
<p><?php_e('You can use the function defined in this script and setup a cron job that calls either:','wp-cron-control');?></p>
<p>You can setup an interval as low as one minute, but should consider a reasonable value of 5-15 minutes as well.</p>
<p>If you need help setting up a cron job please refer to the documentation that your provider offers.</p>
<p><?php_e('You can set an interval as low as one minute, but should consider a reasonable value of 5-15 minutes as well.','wp-cron-control');?></p>
<p>Anyway, chances are high that either <ahref="http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/CronJobs#Adding a cron job"target="_blank">the CPanel</a>, <ahref="http://download1.parallels.com/Plesk/PP10/10.3.1/Doc/en-US/online/plesk-administrator-guide/plesk-control-panel-user-guide/index.htm?fileName=65208.htm"target="_blank">Plesk</a> or <ahref="http://www.thegeekstuff.com/2011/07/php-cron-job/"target="_blank">the crontab</a> documentation will help you.</p>
<p><?php_e('If you need help setting up a cron job please refer to the documentation that your provider offers.','wp-cron-control');?></p>
<p><?phpprintf(__('Anyway, chances are high that either the %s, %s, or %s documentation will help you.','wp-cron-control'),'<a href="http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/CronJobs#Adding a cron job" target="_blank">CPanel</a>','<a href="http://download1.parallels.com/Plesk/PP10/10.3.1/Doc/en-US/online/plesk-administrator-guide/plesk-control-panel-user-guide/index.htm?fileName=65208.htm" target="_blank">Plesk</a>','<a href="http://www.thegeekstuff.com/2011/07/php-cron-job/" target="_blank">crontab</a>');?></p>