WordPress at a glance
function is not described

WC_Plugin_Updates::get_plugins_for_woocommerce() protected WC 1.0

Get plugins which "maybe" are for WooCommerce.

{} It's a method of the class: WC_Plugin_Updates{}

Return

Array. of plugin info arrays

Usage

// protected - for code of main (parent) or child class
$result = $this->get_plugins_for_woocommerce();

Code of WC_Plugin_Updates::get_plugins_for_woocommerce() WC 5.3.0

<?php
protected function get_plugins_for_woocommerce() {
	$plugins = get_plugins();
	$matches = array();

	foreach ( $plugins as $file => $plugin ) {
		if ( 'WooCommerce' !== $plugin['Name'] && ( stristr( $plugin['Name'], 'woocommerce' ) || stristr( $plugin['Description'], 'woocommerce' ) ) ) {
			$matches[ $file ] = $plugin;
		}
	}

	return apply_filters( 'woocommerce_get_plugins_for_woocommerce', $matches, $plugins );
}