GDPRWP / PHP-interface-Obsolete---just-meant-as-a-reference

Project repository for the GDPR PHP Interface
https://www.gdprwp.com/
47 stars 1 forks source link

If my WordPress site has two plugins that use this interface, they're going to conflict aren't they? #11

Open dejliglama opened 6 years ago

dejliglama commented 6 years ago

I could see a way, in which this was referenced just as you do an external .js lib - would that be doable ?

allendav commented 6 years ago

A plugin could declare the interface only if interface_exists is falsy for GdprInterface.

A related question however is how do you anticipate a feature plugin or core will enumerate class instances that implement this interface?

allendav commented 6 years ago

A further thought - some plugins, like Jetpack, if they decide to incorporate this interface, will have independently enable-able modules/features that each will need to instantiate separate implementations of this interface (e.g. Jetpack Google Analytics, Jetpack Ads, etc)