wp_update_plugins
wp_update_plugins
Appears in: siteguard.1.4.3, siteguard.1.5.0, siteguard.1.5.1, siteguard.1.5.2, siteguard.1.6.0, siteguard.1.6.1, siteguard.1.7.1, siteguard.1.7.2, siteguard.1.7.3, siteguard.1.7.5, siteguard.1.7.6, siteguard.1.7.7, siteguard.1.7.8
Hook Type: action
Displaying hooks found in version: siteguard.1.7.8do_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