Naming Collisions
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 333
- Forks
- 127
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 11
Description
Details
- Content type (Online Workshop, Lesson, Course, Tutorial, or Lesson Plan): Lesson
- Content title: Naming Collisions
- Topic description: How to avoid naming collisions in WordPress plugins.
- Audience (User, Developer, Designer, Contributor, etc.): Developer
- Experience Level (Beginner, Intermediate, Advanced, Any): Intermediate
Prerequisites
It is assumed that the learner has already completed the following lessons:
- Beginner WordPress developer
- Modules 1 - 4
- Module 5: WordPress Hooks
- Module 6: An introduction to developing WordPress plugins
Learning Objectives
- Describe what naming collisions are
- Explain, with examples, how to use prefixes to avoid naming collisions
- Explain, with examples, how to use namespaces to avoid naming collisions
- Explain, with examples, how to use classes to avoid naming collisions
Related Resources and Other Notes
- https://developer.wordpress.org/plugins/plugin-basics/best-practices/#avoid-naming-collisions
- https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#namespace-declarations
Automation Code
//lesson
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.