Namespaces declared by a theme/plugin should start with the theme/plugin prefix. Found: “eustatostest_plugin”

Question

I want to use namespace in my plugin. And I have error after PHP_Code_Sniffer check.

Namespaces declared by a theme/plugin should start with the theme/plugin prefix. Found: “eustatostest_plugin“. (WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedNamespaceFound)

My folder structure:

.
└── test-plugin
    ├── composer.json
    ├── phpcs.xml
    ├── test-plugin.php
    └── vendor
// test-plugin.php
<?php

namespace eustatostest_plugin;

phpcs.xml content from here
How I must name namespace?

0
, eustatos 2 years 2020-01-04T08:38:51-05:00 0 Answers 91 views 0

Leave an answer

Browse
Browse