k1sul1 / custom-admin-notices

WordPress plugin that allows for easy generation of custom notices.
MIT License
6 stars 0 forks source link

WP_ENV #4

Closed k1sul1 closed 8 years ago

k1sul1 commented 8 years ago

Todo: Make it possible to show notices only on certain environments. I'm using bedrock so I've WP_ENV defined, but not everyone has. Maybe allow using a certain url to determine if notice should be visible or not?

I think these can bring unnecessary bloat to the interface, so they should be "hidden" behind a checkbox to enable.

k1sul1 commented 8 years ago

Work in progress under feature branch.

WP_ENV checking is working at least in theory, but hasn't been tested. Match-by-url seems to be working properly.

As a sidenote, the plugin is now on a proper plugin base, and these new features are enabled from their own settings page.

k1sul1 commented 8 years ago

Implemented in 0.4.