From 010a03438db8e6e789a45d0ba28dab4d54bda7f0 Mon Sep 17 00:00:00 2001 From: Grzegorz Rola <grola@seostudio.pl> Date: Sun, 7 Oct 2018 13:10:52 +0200 Subject: [PATCH] Readme.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e3151dd..03f8eb7 100644 --- a/README.md +++ b/README.md @@ -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'); ``` -- GitLab