feature(readme): readme
Compare changes
+ 25
− 5
@@ -18,7 +18,7 @@ It also handles dismiss functionality with AJAX requests.
@@ -18,7 +18,7 @@ It also handles dismiss functionality with AJAX requests.
@@ -32,7 +32,7 @@ To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-ba
@@ -32,7 +32,7 @@ To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-ba
If you do not wish to use Composer, you can [download the latest release](https://gitlab.com/wpdesk/wp-notice/-/jobs/artifacts/master/download?job=library). Then, to use the Notices, include the init.php file.
@@ -42,7 +42,7 @@ require_once('/path/to/wp-desk/wp-notice/init.php');
@@ -42,7 +42,7 @@ require_once('/path/to/wp-desk/wp-notice/init.php');
@@ -59,6 +59,26 @@ $notice = new \WPDesk\Notice\Notice('Notice text goes here');
@@ -59,6 +59,26 @@ $notice = new \WPDesk\Notice\Notice('Notice text goes here');
Notice must be used before WordPress action `admin_notices`. WordPress admin actions order is listed [here](https://codex.wordpress.org/Plugin_API/Action_Reference#Actions_Run_During_an_Admin_Page_Request).