server Cron Job Not working
-
Hi everybody; i tried to install a cron job server side for not using wp-cron anymore. I installed WP CLI server side for CRON testing but it doesn’t work as DISABLE_WP_CRON is defined at TRUE. So i created a hook to send me a mail every hour and install it by WP Control plugin. The server support said the cron task is working but i didn’t received mail and in WP Control all task are overdues
Here is my command server side:
/”address to exe”/php /”address to wp cron file”/wp-cron.php
Here is my hook:
function myapp_cron_test()
{
mail(‘my email address’, ‘TEST CRON EVENT’, ‘test cron event by server cron job – OK’);
}add_action( ‘humveg_cron_test’, ‘myapp_cron_test’ );
why is it not working ? thanks….
- The topic ‘server Cron Job Not working’ is closed to new replies.