create a cron job
-
I have to add 2 cron jobs to use wp allimport scheduled tasks.
WP Allimport need to fecth 2 urls, one each day the other each 2 minutesI add hooks on my function.php to call the hook in wp-crontrol
It doesn’t work. I’m not sure my function code is good. :
Here’s the code:add_action( ‘wpai_cron_trig’, ‘wpai_cron_trig_function’ );
function wpai_cron_trig_function() {
wp_http( ‘https://www.xxxxxxxxx.fr/wp-load.php?import_key=xxxxxxxxximport_id=3&action=trigger’ );
}add_action( ‘wpai_cron_proc’, ‘wpai_cron_proc_function’ );
function wpai_cron_proc_function() {
wp_http( ‘https://www.xxxxxxxx.fr/wp-load.php?import_key=xxxxxxxx&import_id=3&action=processing’ );
}Could you help me about it ?
Thanks
- The topic ‘create a cron job’ is closed to new replies.