Title: Programmatically Disable Cron in functions.php
Last modified: August 30, 2016

---

# Programmatically Disable Cron in functions.php

 *  [webninjrdesign](https://wordpress.org/support/users/webninjrdesign/)
 * (@webninjrdesign)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/programmatically-disable-cron-in-functionsphp/)
 * Hey,
 * I build custom themes for WP and I setup server side cron jobs. I’ve been disabling
   cron in the wp-config using…
 * `define('DISABLE_WP_CRON', 'true');`
 * However I would prefer to do this in the themes functions if possible, as it’s
   one less step in my setup.
 * I’m pretty sure I’ve found what I need to do, but was hoping some WP geniuses
   could advise.
 * I’m using `remove_action('init', 'wp_cron');` as from what I can tell that is
   what WP does when the customizer is shown. As the action is called on ‘init’ 
   it should be sweet.
 * Does anyone see any issues with this method that I am unaware of? Cheers.

The topic ‘Programmatically Disable Cron in functions.php’ is closed to new replies.

## Tags

 * [action](https://wordpress.org/support/topic-tag/action/)
 * [cron](https://wordpress.org/support/topic-tag/cron/)

 * 0 replies
 * 1 participant
 * Last reply from: [webninjrdesign](https://wordpress.org/support/users/webninjrdesign/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/programmatically-disable-cron-in-functionsphp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
