barrykooij / wp-notification-center Goto Github PK
View Code? Open in Web Editor NEWAdds a notification center to WordPress, no more pages that are cluttered with notifications
Adds a notification center to WordPress, no more pages that are cluttered with notifications
Some plugins use notice like this <div id="message" class="error">
where id is defined first and this plugin fails to pass regexp :)
Derived of this conversation on Twitter, how about a generated sample notification after the plugin has been activated for the first time? Something light and encouraging, will gladly help out with copy if you like the idea.
In addition to admin_notices
, plugins can also use the following hooks for notices:
network_admin_notices
user_admin_notices
all_admin_notices
It seems you've included the master
branch from the wp-update-php
repo. This version is out of date and now wp-notification-center causes conflicts with plugins that use the more recent version of wp-update-php
.
You should include the release-1-1-0
branch instead.
Having fun with this I noticed HTML (line breaks, links) get stripped out of the notice text.
Bug or feature?
There seems to be a neat overlay of the name and the header text on the .org repo.
May be a great idea to move the notices up 30px :).
I am getting an "Notice: Indirect modification of overloaded element of WP_Hook has no effect in /home/kensin93/staging/app/plugins/wp-notification-center/src/AdminNoticeHandler.php on line 97" error and the plugin now no longer hides notifications
https://i.imgur.com/DGmCH8w.jpg
Wordpress 4.7.4 - running WooCommerce
Currently notifications within the manager only get a colored border when updated
, update-nag
or error
are applied as classes. There are more notification classes in WordPress, though, that should be supported as well:
.notice-success,
div.updated {
border-color: #7ad03a;
}
.notice-warning {
border-color: #ffba00;
}
.notice-error,
div.error {
border-color: #dd3d36;
}
.notice-info {
border-color: #00a0d2;
}
I get a fatal error on the front-end only. Things seem to work fine in admin area. I've added a screenshot from the front-end.
I have this issue with 2 different sites (both in local development)
Plugin version: 1.0.1
WordPress: 4.5.3
Way of installing: via composer
PHP version: 5.5+ (tried 5.5, 5.6 and 7)
If you need more info, you know where to find me
See #2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.