From d5b4ad884e158965d8b1d349b9261722f43a0a51 Mon Sep 17 00:00:00 2001 From: Mohamed Taman <64714190+mtaman@users.noreply.github.com> Date: Sun, 21 Jun 2020 19:10:09 +0300 Subject: [PATCH] change add prefix $prefix - This should be the namespace of the project. --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 1d312f9..6257218 100644 --- a/readme.md +++ b/readme.md @@ -22,7 +22,7 @@ require_once get_theme_file_path( 'path/to/autoload/src/Loader.php' ); $themeslug_loader = new \WPTRT\Autoload\Loader(); // Add (one or multiple) namespaces and their paths. -$themeslug_loader->add( 'WPTRT\\Customize\\Section\\', get_theme_file_path( 'path/to/customize-section-button/src' ) ); +$themeslug_loader->add( 'WPTRT\\Customize\\', get_theme_file_path( 'path/to/customize-section-button/src' ) ); // Register all loaders. $themeslug_loader->register();