Skip to content
Snippets Groups Projects
Commit 2f0a165a authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

composer.json

parent 2d7bf89d
Branches
Tags
No related merge requests found
Pipeline #7098 passed with warnings
......@@ -34,7 +34,7 @@ require_once 'vendor/autoload.php';
Simple usage looks like:
```php
$notice = new \WPDesk\Notice\Notice(Notice::NOTICE_TYPE_INFO, 'Notice text goes here');
$notice = new \WPDesk\Notice\Notice( 'info', '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).
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment