From 796d39c8eacd1e99e25f4ca8145760cc27f92e32 Mon Sep 17 00:00:00 2001
From: Grzegorz Rola <grola@seostudio.pl>
Date: Thu, 9 Jun 2022 14:11:31 +0200
Subject: [PATCH] feature(readme): readme

---
 README.md | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index b481a19..6e1c28b 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@ It also handles dismiss functionality with AJAX requests.
 
 PHP 5.5 or later.
 
-## Composer
+## Installation with composer
 
 You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:
 
@@ -32,7 +32,7 @@ To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-ba
 require_once 'vendor/autoload.php';
 ```
 
-## Manual instalation
+## Manual installation
 
 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.
 
@@ -59,6 +59,10 @@ $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).
 
-## Project documentation
+## Permanent dismissible notices
 
-PHPDoc: https://wpdesk.gitlab.io/wp-notice/index.html 
+To use permanent dismissible notices AJAX handler must be created and hooks initialized:
+
+```php
+    ( new \WPDesk\Notice\AjaxHandler() )->hooks();
+```
-- 
GitLab