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?
- 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?
- 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
- WordPress and multithreading
- What is the correct way for plugins to create tables with special charset/collation considerations?
- Using wp_cron with custom time interval and the register activation hook
- How can I change the frequency of a scheduled event?
- 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
- 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?
- Version upgrade: can my plugin filter the SQL statements issued during a database upgrade?
- Saving data from block editor to the database
- 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
- Update/insert only a column of database table
- Use wp_set_post_terms() instead of wp_insert_post()
- Subscribe to author?
- Programmatically detect if wp-cron is disabled?
- Loading WordPress Admin Environment
- Using WPDB to output raw XML fails because of wp-blog-header.php
- 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
- 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
- Plugin: database creation
- Adding columns to core tables
- wp_schedule_event() set daily, but processed every second
- Show dynamic list of products from custom api of another database under same host
- Make Database query only when option is updated
- Can we intercept user_login and user_pass from a wp_login_form?
- How best to handle database version dependence (from $wp_db_version)
- Looking for a better way to initiate cron job
- WP: Search and replace in DB programmatically
- Using AND and bracket grouping in SQL not working
- How to Schedule Cronjobs for start of every month and year
- Switch from wp-cron to a server cron job
- WordPress plugin cron working only if admin is logged in
- Plugin Development: Storing and Manipulating Data That Fits JSON in Database
- How to make a cronjob type plugin
- How do I debug an error that a plugin is causing?
- Save temporary registration data
- Update plugin settings option_name for big plugin update
- Cron: Update four post at Hour
- How to Run Plugin on Server Without Web Browser
- Why User_login key doesn’t work with wp_update_user()
- How to get inserted row IDs for bulk/batch insert with wpdb query?
- WordPress how do I echo SUM from a column of a MySQL table by user id AND type_operation
- Save in my custom admin page and redirect to the saved object
- Relational / Associate tables using native WordPress functionality
- WordPress doesn’t create table on plugin activation
- Insert Data into Database
- Update database record in plugin
- WordPress Cron function is not working
- Why Worpdress doesn’t create table in database?
- Form and database, plugin development
- Detect each active instance of a widget
- Adding custom cron_schedule prior to wp_schedule_event
- Can wp_schedule_single_event be used to run background proccess?
- Call do_action() within WordPress cronjob
- How to create a database table in WordPress using PHP
- Leveraging Core Functionality in Icon Upload Plugin [closed]
- Programmatically creating posts based on external JSON feed (asynchronously)
- WordPress database error: [Table ‘bitnami_wordpress.questions’ doesn’t exist]
- Making a user platform reachable by a qr code on a pin-back-button [closed]
- multiple record insert creating many duplicate records