wp_version_check

wp_version_check

Hook Type: action

See hook in core

Displaying hooks found in version: siteguard.1.7.8

do_action('wp_version_check') is found 1 times:

  • /classes/siteguard-updates-notify.php line 112
    	}
    
    	private static function core_update_check( &$message ) {
    		global $siteguard_config, $wp_version;
    		do_action( 'wp_version_check' ); // force WP to check its core for updates
    		$update_core = get_site_transient( 'update_core' ); // get information of updates
    		$notified    = $siteguard_config->get( 'notified' );
    		if ( 'upgrade' == $update_core->updates[0]->response ) { // is WP core update available?
    			if ( $update_core->updates[0]->current != $notified['core'] ) { // have we already notified about this version?
    				require_once ABSPATH . WPINC . '/version.php'; // Including this because some plugins can mess with the real version stored in the DB.
    				$new_core_ver     = $update_core->updates[0]->current; // The new WP core version