Naming Collisions
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
Lesson Development Checklist
- [ ] Gather any relevant links to Support, Docs, or related material
- [ ] Description and Objectives finalized
- [ ] Lesson created and announced to the team for review
- [ ] Lesson reviewed
- [ ] Lesson video submitted and published to WPTV
- [ ] Lesson created on Learn.WordPress.org
- [ ] Lesson video published to YouTube
- [ ] Lesson on Learn.WordPress.org updated with YouTube video
- [ ] Lesson published to Learn.WordPress.org
Lesson script: https://github.com/jonathanbossenger/wp-content/blob/main/plugin-developer-learning-pathway/01-Plugin-Development-Practices/02-Naming-Collisions.md
Audio: https://drive.google.com/file/d/1KbHUQmze_9NTWQvu9qUuFGWE8U8stcuu/view?usp=sharing
@agiljulio, please comment here when you start working on this video, so I can assign you. Thanks
Hi team, I would like to be involved in editing this video 👍
Hey @agiljulio I'm just checking in, do you have an ETA for this video?
Thanks
Hi @jonathanbossenger I will try my best to have this video completed by either Thursday or Friday 🙏
Perfect @agiljulio thanks for the update.
hi @jonathanbossenger
First of all, I would like to apologize for the delay in sending the video 🙏 I’ve been struggling to complete this module (Naming Collisions), as I spent more time working on the coding aspect rather than editing the video. In the meantime, I’ve been working on the Activation/Deactivation Methods module and I'm currently finishing up the Uninstall Methods module as quickly as possible.
Once again, I apologize for the delay. Would there be any possible solutions to help with this module? Thank you in advance and here's the video for Activation/Deactivation Methods module and I will comment on that issue 🙏
And please let me know if there is any feedback regarding the video, thank you 🙏
Hi @agiljulio, thanks for letting me know.
Would there be any possible solutions to help with this module?
What kind of support do you need?
I'm happy for you to prioritize the other videos first if you find it easier to work on them and then return to this one later if you need more time.
Alternatively, I am also happy to record any specific elements of the video for you.
Let me know what I can do do support you
@jonathanbossenger I would need your help with screen recording each step of the code, including any error messages or debugging results. From that screen recording, I can directly proceed with editing the video 🙏
@agiljulio sure, no problem there. I should be able to have this for you by the end of the week.
@jonathanbossenger thank you so much 🙏
https://github.com/user-attachments/assets/3f680bf1-df36-442d-b7f8-56ae80cb3018
@agiljulio sorry it's a little late, but here's the recording as promised.
I just opened a code editor, hit record, and recorded everything. The only things I edited were bloopers. Feel free to use/discard the audio, as you also have the original audio recording. I also didnt' record any documentation pages, or any front end things, hopefully you're able to do that from your side?
Let me know if not and I can record those as well.
@jonathanbossenger No problem, all good. Thank you so much for the screen recording 🙏 I’ll start editing it as soon as possible. For the documentation page, I can handle the recording on my end since the steps are already detailed in the script. As for the front end, I’ll review it and let you know if I’ll need the recording for that as well.