$notice=newNotice(Notice::NOTICE_TYPE_INFO,'Notice text goes here',false);
$notice=new\WPDesk\Notice\Notice(Notice::NOTICE_TYPE_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).
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).