New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filter to create admin notice in shadow #8

merged 1 commit into from Mar 6, 2017


None yet
2 participants
Copy link

TeemuSuoranta commented Dec 5, 2016

Sometimes you need to give rules for logged in users how to handle the content. In some occasions you do want them to create new content in shadow and other times never do any content editing in shadow. Here's a simple filter for plugins or themes to create their own message that is displayed on some screens or all of them.

I couldn't really test this because of the nature of this plugin. If you have a testing environment for the plugin, test that the example given works. I couldn't really do any escaping for the admin_notice because I wanted it to be as easy as possible to change the CSS classes, markup, content etc.


This comment has been minimized.

Copy link

TeemuSuoranta commented Dec 5, 2016

I tested this in real staging and it works just like it should.


This comment has been minimized.

Copy link

ottok commented Mar 6, 2017

Thanks a lot!

@ottok ottok merged commit bfb019a into Seravo:master Mar 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment