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:
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.
-
SiteGuard WP Plugin600,000+ installs
do_action( 'wp_version_check' )classes/siteguard-updates-notify.php:134 -
CloudSecure WP Security200,000+ installs
do_action( 'wp_version_check' )modules/update-notice.php:253 -
WP Updates Notifier20,000+ installs
do_action( 'wp_version_check' )includes/class-update-checker.php:540 -
WordPress Beta Tester2,000+ installs
do_action( 'wp_version_check' )src/WPBT/WP_Beta_Tester.php:160 -
WatchTowerHQ100+ installs
do_action( 'wp_version_check' )src/Core.php:119 -
Easy Update Notifier60+ installs
do_action( 'wp_version_check' )update-tracker.php:153 -
Fibre40+ installs
do_action( 'wp_version_check' )includes/provider/core.php:35 -
MySitesManager Updates Checker10+ installs
do_action( 'wp_version_check' )mysitesmanager-updates-checker.php:261 -
Anexia Monitoring10+ installs
do_action( 'wp_version_check' )modules/VersionMonitoring.php:115 -
WP Network Stats10+ installs
do_action( 'wp_version_check' )includes/class-plugin-helper.php:611 -
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.