Skip to content

Management of plugins (in)compatibility with features #34861

@Konamiman

Description

@Konamiman

This task is framed in the context of the COT/HPOS project but the implementation will be useful for any future new feature as well

After #34727 is merged we need to do something when there are plugins that are incompatible with one or more of the existing features.

To start with, we decide that a given plugin is incompatible with a given feature if either:

  1. It explicitly declares incompatibility with the feature using the FeaturesController class introduced in the mentioned pull request; or
  2. It has a WC tested up to header but does not declare compatibility with the feature.

Now, the "something" to do is:

  1. In the WordPress plugins page, show a warning under the plugin name, indicating that the plugin is incompatible with one or more features. Similar to this, but the message will be more like "Incompatible with X existing features, click here to manage WooCommerce features"

image

  1. Additionally, if at least one of the features is enabled, it won't be possible to activate the plugin:

image

  1. Disallow enabling a feature if at least one incompatible plugin is active.

  2. Under each disabled feature show a warning with the count of incompatible plugins, together with a link to a list of the plugins that are incompatible with the feature.

image

  1. The list of plugins incompatible with a given feature will be implemented as a new section in the WordPress plugins page, the section will only be visible when accessed via the said link:

image

cc @jarekmorawski

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementThe issue is a request for an enhancement.plugin: woocommerceIssues related to the WooCommerce Core plugin.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions