WordPress action hook
load-update-core.php
Fired by 8 WordPress plugins, running on 1.3M+ sites between them.
How to use load-update-core.php
It's an action: your callback runs at that point. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'load-update-core.php', function() {
// Your code runs here.
}, 10, 1 );Argument names come from ManageWP Worker's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
8 plugins that fire load-update-core.php
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
ManageWP Worker1+ million installs
do_action( 'load-update-core.php' )src/MMB/Installer.php:107 -
InfiniteWP Client200,000+ installs
do_action( 'load-update-core.php' )core.class.php:266 -
WP Umbrella: Security Backup Restore & Monitoring90,000+ installs
do_action( 'load-update-core.php' )src/Services/RequestSettings.php:201 -
Backup and Staging by WP Time Capsule10,000+ installs
do_action( 'load-update-core.php' )common-functions.php:1960 -
DayCounts Up To Date10+ installs
do_action( 'load-update-core.php' )public/class-uptodate-extensions.php:32 -
Super Stage WP10+ installs
do_action( 'load-update-core.php' )wpss-common-functions.php:1872 -
FreelanceBo Sentra ControlFewer than 10 installs
do_action( 'load-update-core.php' )includes/modules/class-sentra-auto-patcher.php:265 -
MajScanFewer than 10 installs
do_action( 'load-update-core.php' )includes/updates-checker.php:20
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.