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

Readme.md

parent 9cbae43b
No related branches found
No related tags found
1 merge request!4Feature/factory
Pipeline #7637 passed
......@@ -45,14 +45,15 @@ require_once('/path/to/notice/src/init.php');
Simple usage looks like:
```php
$notice = WPDeskNotice('Notice text goes here');
$notice = wpdesk_notice('Notice text goes here');
// Is equivalent to:
$notice = WPDeskNotice('Notice text goes here');
// Is equivalent to:
$notice = \WPDesk\Notice\Factory::notice('Notice text goes here');
// Is equivalent to:
$notice = new \WPDesk\Notice\Notice('Notice text goes here');
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment