From a8cd5b8ec894bde489054c01c208ec0c44265cbf Mon Sep 17 00:00:00 2001 From: Mohamed Taman <64714190+mtaman@users.noreply.github.com> Date: Sun, 21 Jun 2020 19:17:35 +0300 Subject: [PATCH] Change autoloader $prefix --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index f4da7a5..823db03 100644 --- a/readme.md +++ b/readme.md @@ -111,6 +111,6 @@ If using the WPTRT autoloader, use the following code: include get_theme_file_path( 'path/to/autoload/src/Loader.php' ); $loader = new \WPTRT\Autoload\Loader(); -$loader->add( 'WPTRT\\AdminNotices\\Notice', get_theme_file_path( 'path/to/admin-notices/src' ) ); +$loader->add( 'WPTRT\\AdminNotices\\', get_theme_file_path( 'path/to/admin-notices/src' ) ); $loader->register(); ```