Title: pause cron using a function
Last modified: October 25, 2018

---

# pause cron using a function

 *  Resolved [Mark elayan](https://wordpress.org/support/users/ramielian/)
 * (@ramielian)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/pause-cron-using-a-function/)
 * hi
 * is there anyway i can disable/pause a cron using API or function?
 * i need sometimes to pause certain crons for some time without logging into wordpress.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * (@kubitomakita)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/pause-cron-using-a-function/#post-10815297)
 * Hi, unfortunately, there’s no easy way to do this.
 * Functions to pause are buried deep in the code (I know, not an ideal architecture)
   and you’d need to instantiate many classes to do so.
 * Take a look at this: [https://github.com/BracketSpace/Advanced-Cron-Manager/blob/develop/inc/Cron/EventsLibrary.php#L136](https://github.com/BracketSpace/Advanced-Cron-Manager/blob/develop/inc/Cron/EventsLibrary.php#L136)
 * All classes are registered in the main file:
    [https://github.com/BracketSpace/Advanced-Cron-Manager/blob/develop/advanced-cron-manager.php](https://github.com/BracketSpace/Advanced-Cron-Manager/blob/develop/advanced-cron-manager.php)

Viewing 1 replies (of 1 total)

The topic ‘pause cron using a function’ is closed to new replies.

 * ![](https://ps.w.org/advanced-cron-manager/assets/icon.svg?rev=3096140)
 * [Advanced Cron Manager - debug & control](https://wordpress.org/plugins/advanced-cron-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-cron-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-cron-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-cron-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-cron-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-cron-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/pause-cron-using-a-function/#post-10815297)
 * Status: resolved