Another test – the problem is not only with function setRegularCron but with all wp_schedule_event in your plugin 🙁
I could not understand. Please contact to me via email: [email protected]
Which part You don’t understand? You use wp_schedule_event not in accordance with documentation https://codex.ww.wp.xz.cn/Function_Reference/wp_schedule_event
call wp_schedule_event on activation (otherwise you will end up with a lot of scheduled events!)
You need more details? What details? I think I wrote very simple what is wrong.
Please contact to me via email: [email protected]
For what? I give You all details. Tell mi what You need more and I will contact via email.
must I add register_activation_hook(__FILE__, ‘my_activation’); ? are you talking about it?
You must change code where You using wp_schedule_event – wp_schedule_event should be used only on plugin activation as it is described in documentation.
now I got what activation means 🙂 If we don’t set the schedule on the activation, more than one cron jobs cannot work at the same minute?
If we don’t set the schedule on the activation then a lot of scheduled events will just stop.
a lot of scheduled events won’t work or they are deleted from cronjobs list?
tell me your plugin. I will make a test on my site.
XMPP Statistics but You need ejabberd server to test it.
I tested with Crony Cronjob Manager. I added cron job via Crony Cronjob Manager and it works when my cronjob works.
By the way, I removed setRegularCron.
Version without setRegularCron works okey for me, thanks 🙂