Namespaces are used to encapsulate functionality. PHP Namespace Overview

  • Namespaced Classes are loaded via the PSR-4 Autoloader

  • The WPDD namespace is required for all WPDD Theme Bootstrap functionality such as WPDD\ThemeSetup.

  • To add a PSR-4 namespace to the autoloader:

    • Create your base directory.

    • Open: ./composer.json

    • Add your namespace to the "autoload" section:"NAMESPACE\\": "path/to/namespace_dir/"