iandunn / admin-notice-helper Goto Github PK
View Code? Open in Web Editor NEWHelps WordPress plugins and themes display messages/errors to the user within the Admin Panels
License: GNU General Public License v2.0
Helps WordPress plugins and themes display messages/errors to the user within the Admin Panels
License: GNU General Public License v2.0
This is just an idea...
I know this helper is mean to be used with wordpress and wordpress do not support composer but there are some ways to integrate it like webroot-installer
There is also a mirror of the WordPress plugin and theme directories as a Composer repository wpackagist
So I wonder if you can add support for composer and make it more easy to add this helper to my wordpress projects.
In the mean time I am using a custom package repository
{
"type": "package",
"package": {
"name": "iandunn/admin-notice-helper",
"version": "0.2",
"dist": {
"url": "https://github.com/iandunn/admin-notice-helper/archive/0.2.zip",
"type": "zip"
},
"autoload": {
"classmap": ["/"]
}
}
}
Fantatsic Idea, I just included it in a plugin. What I would like to see in the future would be some sort of dismissable notices, this would make a perfect addition.
I got rid of the file include to have a drop_in class like this:
echo '<div class="anh_message '.esc_attr( $class ).'">'; foreach ( $this->notices[ $type ] as $notice ) { echo '<p>'; echo wp_kses( $notice, wp_kses_allowed_html( 'post' ) ); echo '</p>'; } echo '</div>';
Thanks again for your work.,
NVM
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.