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:

functions.php
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.

  1. ManageWP Worker icon ManageWP Worker1+ million installs do_action( 'load-update-core.php' ) src/MMB/Installer.php:107
  2. InfiniteWP Client icon InfiniteWP Client200,000+ installs do_action( 'load-update-core.php' ) core.class.php:266
  3. WP Umbrella: Security Backup Restore & Monitoring icon WP Umbrella: Security Backup Restore & Monitoring90,000+ installs do_action( 'load-update-core.php' ) src/Services/RequestSettings.php:201
  4. Backup and Staging by WP Time Capsule icon Backup and Staging by WP Time Capsule10,000+ installs do_action( 'load-update-core.php' ) common-functions.php:1960
  5. DayCounts Up To Date icon DayCounts Up To Date10+ installs do_action( 'load-update-core.php' ) public/class-uptodate-extensions.php:32
  6. Super Stage WP icon Super Stage WP10+ installs do_action( 'load-update-core.php' ) wpss-common-functions.php:1872
  7. FreelanceBo Sentra Control icon FreelanceBo Sentra ControlFewer than 10 installs do_action( 'load-update-core.php' ) includes/modules/class-sentra-auto-patcher.php:265
  8. MajScan icon 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.