Skip to content

Update Plugin Best Practices section on Avoid Naming Collisions to include namespaces as an option #1679

Open

Description

Issue Description

The Avoid Naming Collisions section of the Best Practices page in the Plugin developer handbook includes the options to use prefixes, and classes, but not namespaces, to avoid naming collisions.

We do have a section on using namespaces in our coding standards, so it makes sense to add this to our plugin developer handbook as well.

URL of the Page with the Issue

https://developer.wordpress.org/plugins/plugin-basics/best-practices/

Section of Page with the issue

The section Avoid Naming Collisions

Why is this a problem?

It doesn't include namespaces as a solution

Suggested Fix

Add a section on the use of namespaces as an option, after the prefix section. Include details on how to create good namespaces based on the WordPress coding standards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

[Status] To doIssue marked as Tododeveloper documentation (DevHub)Improvements or additions to developer documentationpluginsIssues for Plugin Developer Handbook

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions