Title: Search: Remove cron job scheduling on rest_api_init action
Author: WordPress VIP Documentation
Published: February 18, 2021
Last modified: August 5, 2025

---

 1. [Changelog](https://docs.wpvip.com/changelog/)
 2. [VIP MU plugins [Production]](https://docs.wpvip.com/changelog/vip-mu-plugins-production/)
 3. Search: Remove cron job scheduling on rest_api_init action

# Search: Remove cron job scheduling on rest_api_init action

---

 18 February 2021

10:07:49 GMT+0000

 [ VIP MU plugins [Production] ](https://docs.wpvip.com/changelog/vip-mu-plugins-production/)

 [ Permalink  ](https://docs.wpvip.com/changelog/vip-mu-plugins-production/search-remove-cron-job-scheduling-on-rest_api_init-action/)

Changed how a VIP Search cron job is scheduled – previously it was hooked into `
rest_api_init` along with 2 other hooks, but this is unnecessary overhead as the
job will be scheduled reliably via WP CLI (which runs regularly via cron).

[https://github.com/Automattic/vip-go-mu-plugins/pull/1991](https://github.com/Automattic/vip-go-mu-plugins/pull/1991)