wp_update_plugins

wp_update_plugins

Hook Type: action

See hook in core

Displaying hooks found in version: siteguard.1.7.8

do_action('wp_update_plugins') is found 1 times:

  • /classes/siteguard-updates-notify.php line 139
    	private static function plugins_update_check( &$message, $allOrActive ) {
    		global $siteguard_config, $wp_version;
    		$cur_wp_version = preg_replace( '/-.*$/', '', $wp_version );
    		$notified       = $siteguard_config->get( 'notified' );
    		do_action( 'wp_update_plugins' ); // force WP to check plugins for updates
    		$update_plugins = get_site_transient( 'update_plugins' ); // get information of updates
    		if ( ! empty( $update_plugins->response ) ) { // any plugin updates available?
    			$plugins_need_update = $update_plugins->response; // plugins that need updating
    			if ( 2 == $allOrActive ) { // are we to check just active plugins?
    				$active_plugins      = array_flip( get_option( 'active_plugins' ) ); // find which plugins are active
    				$plugins_need_update = array_intersect_key( $plugins_need_update, $active_plugins ); // only keep plugins that are active