How to deactivate chrono set in batch with WordPress

So I have activated 3200 chronos in total which I'd like to deactivate as the server can't handle it.

Where should I go to deactivate these on the database or with a function that might deactivate this or what would the right direction be.

This was the kind of activation I did in batch:

if(!wp_next_scheduled('myfunc_global_update_h1')){
wp_schedule_event(time(),'hourly','myfunc_global_update_h1');
}
add_action('myfunc_global_update_h1','myfunc_global_update1');

and there is that function also myfunc_global_update1

now the functions will be deleted from the file in which those events got registered, scheduled however it is it works.

But will that be enough ? I don't know how this all works too well.

All of the information I find is related to setting the chronos, but not unsetting.

Solutions

What you are talking about is wp_cron and related functions, not "chrono" which is a C# library (I think).

I believe that what you need is wp_clear_scheduled_hook which "Un-schedules all previously-scheduled cron jobs using a particular hook name."

wp_clear_scheduled_hook('myfunc_global_update_h1');
Tags: PHP / Mysql / Wordpress

Similar questions

How do I efficiently perform a batch processing action on almost 8,000 WordPress posts?
I have written a WordPress plugin that analyzes a post and extracts some data from the body on save (using the save_post action). My installation has almost 8,000 posts, and I need to perform this retroactively on every single post. So, I need a batch job of some kind that will iterate every post and perform this operation without timing out. There...
Wordpress batch for move posts status for custom type
Is there any way for change all custom posts type status change from "publish" to Draft ? Scenario: Here I need to run a script. my post type is: property_listing Now I need to make all post draft then perform my custom operation. Is it possible ?
how to do batch processing in wordpress for downloading CSV file
I need to fetch approx 6000 records from my WordPress database. When i am using simple query of WordPress $wbpd->get_result('Query') . It's giving me the error of "Server timeout error". So, I want to use batch processing concept for this. Below is my code. Hope anyone can help me with this. Thanks in advance.
Wordpress Batch delete photos in media by name
My media has over 100k images. I filtered it out by name and deleted it but limited to 200 pictures, if more would get the error "URI Too Long error". So can you show me how to batch delete photos by name in Media? I have used plugins like Media Cleaner, WPS cleaner but it doesn't work, it takes a lot of time. I use Wordpress Bitnami on G...
Batch Emails with wp_mail()
I've searched all over Google with no luck. Can someone point me in the right direction for learning how to send out batch emails with the wp_mail() function?
Send batch of posts as HTML Email?
Looking for a little help getting to grips with a quote, part of which is producing quarterly reports consisting on all the posts from that quarter. My question is two fold - Is there a plugin that can do this sort of thing? Or of not, any clue as to where to start coding it? Cheers

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.