With EP Admin Messages you can show messages in the admin area of WordPress. Each message can be shown at multiple places and can be limited to only be shown to specific user groups using capabilities.
This plugin requires that you add a config file to your themes folder. It’s mostly useful for theme developers that want tho show messages in the admin to the users of their site.
- Show messages in WordPress Admin
- Show messages in different places
- Show different messages for different users
- Format messages using HTML
- Stores settings in a JSON-file. No config screen!
- Suitable for website and theme developers that want to push message changes automatically.
Messages are shown where you want them to be shown
You have full control over where your messages will be shown.
Each message can be placed in one or several of the following places:
- overview screen for posts, pages, and custom post types
- edit screen for posts, pages and custom post types
- posts with a specific slug or a slug based on a wildcard
- user overview screen and on user profiles
- plugin install/update page
Messages are only shown to the users that you choose
You can for example show one message to your editors, i.e. users with the capability “edit_posts”, and another message to your admins, i.e. users with the capability “manage_options”.
Messages can be selectd to be shown only on the posts you choose
Messages can be limited to only be shown on posts that match a specific slug, or a slug that matches a wildcard.
This way it’s easy to for example show page specific information, letting a user know what a page is for, what they should put in in, and so on.
JSON-based config file
All settings are configured with a config file (view example config) that uses JSON and that you put in the themes directory.
This means that there are no settings for the user to change. This also means that you can add messages using your regular deploy method. Just upload an updated config file and you’re done. No database syncing needed; hooray!
To give you an idea what this plugin may be used for, I’ll give you a list of what I do with it.
EP Simple Messages can be used to…
- … write documentation for users and developers.
- … show users what Mustache tags are available for a specific post. You know, things like
- … show a message on the dashboard with support info, like who made the site and who they should contact for support questions.
- … let the user know what shortcodes that are available for all posts.
The source code for EP Admin Messages is available at GitHub.
- Upload the plugin folder to your
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Add a file called
.ep-config.jsonto your theme directory. This file contains your config in JSON-format.
Optional: update your
.htaccessto disable access to the config file used by this plugin (if you don’t do this everyone with access to your site may be able to read your messages):
Forbid access to all files beginning with a dot (.).
RedirectMatch 403 /..*$
Or forbid access to only .ep-config.json
RedirectMatch 403 /.ep-config.json$
There are no reviews for this plugin.
Contributors and Developers
“EP Admin Messages” is open source software. The following people have contributed to this plugin.Contributors
- Allow installation for php 5.3 or higher. Prev was set to higher than 5.3 (but not including 5.3).
- Fixed a notice warning when creating new post
- Bump version because I can’t use SVN properly…
- Added support for limiting messages to users based on their role. Usage:
- Added support for custom title in metaboxes. Usage:
"title": "This is the title of the message"
- Added support for limiting messages to users based on their ID or their username. Usage: “`username: “admin”“
ep-config.jsonfor configuration file. Makes it a bit more secure, since dot-files often are hidden and protected by default.
- Example config
config-example.jsonupdated with better examples and is now in english.
- Fixed bug with notice warning when creating new posts.
- Added screenshots.
- First working version.