diff --git a/includes/admin/helper/class-wc-helper.php b/includes/admin/helper/class-wc-helper.php index 10141343142..3648b71ece2 100644 --- a/includes/admin/helper/class-wc-helper.php +++ b/includes/admin/helper/class-wc-helper.php @@ -330,6 +330,7 @@ class WC_Helper { 'all' => __( 'All', 'woocommerce' ), 'active' => __( 'Active', 'woocommerce' ), 'inactive' => __( 'Inactive', 'woocommerce' ), + 'installed' => __( 'Installed', 'woocommerce' ), 'update-available' => __( 'Update Available', 'woocommerce' ), 'expiring' => __( 'Expiring Soon', 'woocommerce' ), 'expired' => __( 'Expired', 'woocommerce' ), @@ -399,6 +400,14 @@ class WC_Helper { $subscriptions = wp_list_filter( $subscriptions, array( 'active' => false ) ); break; + case 'installed': + foreach ( $subscriptions as $key => $subscription ) { + if ( empty( $subscription['local']['installed'] ) ) { + unset( $subscriptions[ $key ] ); + } + } + break; + case 'update-available': $subscriptions = wp_list_filter( $subscriptions, array( 'has_update' => true ) ); break;