Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

Prevent execution if dependent plugins don't meet criteria #13

Open
jasonbahl opened this issue Aug 11, 2022 · 0 comments
Open

Prevent execution if dependent plugins don't meet criteria #13

jasonbahl opened this issue Aug 11, 2022 · 0 comments

Comments

@jasonbahl
Copy link
Contributor

It would be good to let users know if/when dependent plugins aren't compatible with this plugin.

For example, if this plugin required xx version (or newer) of WPGraphQL and xx version (or newer) of WPGraphQL Smart Cache, we should run this check and if criteria isn't met, bail early and show and admin notice.

Example code like this is in WPGraphQL for ACF: https://github.com/wp-graphql/wp-graphql-acf/blob/develop/wp-graphql-acf.php#L31-L47

^ may or may not be "ideal" code to follow, but a good start

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant