Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Namespace or prefixes or singleton #43

Open
jrastaban opened this issue May 14, 2020 · 0 comments
Open

Namespace or prefixes or singleton #43

jrastaban opened this issue May 14, 2020 · 0 comments

Comments

@jrastaban
Copy link

jrastaban commented May 14, 2020

I'm super excited about what this plugin is enabling content creators to do. Reviewed the code and it seems to work well. I'm just going to submit some issues around best practices for when this moves into the clean up tech debt phase.

To make sure common function names don't conflict with other plugins it is recommended to take steps to make yours unique. It use to be best practice was to prefix the plugin name to all functions but now that the WP minimum supported PHP version has been bumped people have been moving to using name spaces.
https://developer.wordpress.org/plugins/plugin-basics/best-practices/#avoid-naming-collisions

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant