WordPress action hook

wp_version_check

Fired by 11 WordPress plugins, running on 822K+ sites between them.

How to use wp_version_check

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( 'wp_version_check', function() {
	// Your code runs here.
}, 10, 1 );

Argument names come from SiteGuard WP Plugin's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

11 plugins that fire wp_version_check

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. SiteGuard WP Plugin icon SiteGuard WP Plugin600,000+ installs do_action( 'wp_version_check' ) classes/siteguard-updates-notify.php:134
  2. CloudSecure WP Security icon CloudSecure WP Security200,000+ installs do_action( 'wp_version_check' ) modules/update-notice.php:253
  3. WP Updates Notifier icon WP Updates Notifier20,000+ installs do_action( 'wp_version_check' ) includes/class-update-checker.php:540
  4. WordPress Beta Tester icon WordPress Beta Tester2,000+ installs do_action( 'wp_version_check' ) src/WPBT/WP_Beta_Tester.php:160
  5. WatchTowerHQ icon WatchTowerHQ100+ installs do_action( 'wp_version_check' ) src/Core.php:119
  6. Easy Update Notifier icon Easy Update Notifier60+ installs do_action( 'wp_version_check' ) update-tracker.php:153
  7. Fibre icon Fibre40+ installs do_action( 'wp_version_check' ) includes/provider/core.php:35
  8. MySitesManager Updates Checker icon MySitesManager Updates Checker10+ installs do_action( 'wp_version_check' ) mysitesmanager-updates-checker.php:261
  9. Anexia Monitoring icon Anexia Monitoring10+ installs do_action( 'wp_version_check' ) modules/VersionMonitoring.php:115
  10. WP Network Stats icon WP Network Stats10+ installs do_action( 'wp_version_check' ) includes/class-plugin-helper.php:611
  11. XML-RPC Update Check icon XML-RPC Update Check10+ installs do_action( 'wp_version_check' ) xmlrpc-update-check.php:70

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.