ElasticPress icon indicating copy to clipboard operation
ElasticPress copied to clipboard

Multiple Required Features (Issue 4123 Req 5)

Open ZacharyRener opened this issue 8 months ago • 0 comments

Description of the Change

There is already support for a singular required feature: $this->requires_feature = 'search';

This change adds support for multiple: $this->requires_features = ['search', 'autosuggest'];

While retaining support for a singular required feature.

How to test the Change

Add $this->requires_features = ['feature_slug_1', 'feature_slug_2']; to a Feature's constructor

Changelog Entry

Added - Ability for a feature to require multiple other features, instead of just one

Credits

Props @ZacharyRener

Checklist:

ZacharyRener avatar May 01 '25 05:05 ZacharyRener