Open dejliglama opened 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?
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)
I could see a way, in which this was referenced just as you do an external .js lib - would that be doable ?