The WP_DISABLE_CRON
constant only removes WP-Cron from loading on the page so it’s no longer triggered by site traffic.
You can absolutely hit the wp-cron.php file directly to trigger it. I use https://cron-job.org to ping my private sites at https://dev.example.com/wp-cron.php?doing_wp_cron
for example.
This is actually recommended in the WordPress handbook: https://developer.wordpress.org/plugins/cron/hooking-wp-cron-into-the-system-task-scheduler/
Editing to add: if you’re concerned about triggering any other hooks associated with WP-Cron that maybe the site owner wants to avoid, you can also use cron-job.org (or a server CRON) to ping a page within your plugin to only run your update function without triggering WP-Cron at all.
Related Posts:
- How Do I Make WordPress Run an Event Every Day?
- Hourly WP schedule, do I need at least 1 visitor hourly?
- Is there any background process that I can run from plugin without depending on page hits on a website without affecting page-load speed?
- WordPress cron running twice
- Will cron job run if page loaded is being served from cache?
- How to schedule a cron job in plugin without waiting for page load request?
- How to perform a heavy and long process in cron jobs?
- How to Trigger WP CRON at Local Timestamp?
- Plugin with functions inside a class & how to trigger WP CRON
- How and when would I implement some code which would take data from one part of the Db and put it in another?
- WP Cron as Fast as WordPress AJAX?
- What is the use of wp_schedule_event hook?
- WordPress Cron Job not importing products
- Post meta vs separate database tables
- Is it mandatory to use $wpdb->prefix in custom tables
- Update Option Stored in Multi-Dimensional Array
- How do I log plugin (cron) actions?
- Default table collation on plugin activation?
- Which action for triggering cron “wp”or “init”?
- Using a database view = evil incarnate?
- Writing a plugin that notify my friends of new post that mentions(@) them
- Getting wrong relationship value in $args in wp_Query?
- WordPress and multithreading
- wp_schedule_event in a class
- WP Cron – Run Cron after evey 15 minutes at a specific time for the next three hours
- Not sure the best way to save custom plugin data
- The ideal place for storing persistent PHP objects
- What is the correct way for plugins to create tables with special charset/collation considerations?
- Cron firing my function everytime wp-admin is visited
- Using wp_cron with custom time interval and the register activation hook
- WordPress scheduled task is called but not executed
- Problem creating cron job wordpress
- How can I change the frequency of a scheduled event?
- What is the added “complexity” of custom tables?
- Plugin development with unit tests
- How is the data stored in the database?
- get_posts / WP_Query Memory size of 134217728 bytes exhausted
- Formatting of curly brackets array from WP database to get more readable output
- How to modify post content before writing to database?
- Actions or filters fired when data is saved in a custom table
- WP Cron doesn’t save or in post body
- Scheduled event does not run at midnight
- Hello dolly type plugin that allows people to add their own
- Sample — test — data for large WordPress install
- Custom Plugin Database relations
- Is there any reason only 1 (my) IP would be added to this table using $wpdn->insert?
- Is it possible to load plugin from console with core ?
- How ( and mostly at what time ) can i prevent the alternate cron from running?
- How to store data for posts/pages built with drag-n-drop builder?
- Database for development
- Is there a naming convention for database tables created by a plugin?
- Activation hook not creating table
- Is the usage of ON DELETE CASCADE wrong or not allowed on wordpress?
- Version upgrade: can my plugin filter the SQL statements issued during a database upgrade?
- Saving data from block editor to the database
- Does wp-cron runs all tasks scheduled at same time together or one after other?
- What for the tables ending with the meta used in database of wordpress?
- Scheduling a task using class methods
- Creating table with plugin is not working
- What is minimum time interval for which a cron be scheduled?
- dbDelta() Error – Incorrect index name ” for query ALTER TABLE
- Get a custom table to an array
- Update/insert only a column of database table
- Use wp_set_post_terms() instead of wp_insert_post()
- How to Create database table when Plugin installed/activated, and delete database when Plugin deleted
- Subscribe to author?
- I’m designing a plugin to create database indexes. Suggestions?
- Programmatically detect if wp-cron is disabled?
- Loading WordPress Admin Environment
- WordPress database error for query INSERT INTO
- How to connect to AWS RDS external database (not for the core WordPress db)
- How should I store a log for my plugin
- How to create database table, add data, update and delete using wpdb via plugins?
- Using WPDB to output raw XML fails because of wp-blog-header.php
- Are there any scripts, classes, and/or functions built-in to WP for a plugin to export/import its saved data from wp_options?
- Strange issue saving custom field data for a WooCommerce order
- Form doesnt save to database
- Updating Woocommerce Settings API when WordPress Settings API saved and vise versa
- How does task scheduler plugin implements cron that is not dependent on page load request? [closed]
- Is using custom table to suit business needs instead of transients a big hit to page load speed?
- How wp-cron can run in background if PHP is single threaded?
- Plugin Development for registered users
- WordPress daily cron is executing more frequently than once a day
- Problems with cron
- Optimising a big WordPress site
- wpdb->prepare and mysql UPDATE – how is it done?
- dbDelta SQL Query Not Working
- wp-cron and execution of code in is_admin() included script
- dbDelta not installing database
- Is it necessary to do validation again when retrieving data from database?
- WP Cron being triggered but not working as expected
- What is the best way to store a few fields?
- Plugin: database creation
- Adding columns to core tables
- wp_schedule_event() set daily, but processed every second
- How to query custom db table?
- Delete data from database using row action
- Show dynamic list of products from custom api of another database under same host
- How do I have now a duplicated user entry if this is not allowed (and I cannot replicate it)?
- Alternative functions for mysql_free_result and mysql_ping in wordpress functions