Skip to content

Conversation

@albeertito7
Copy link

Added Composer so that this project can be based on namespaces and dependencies, enabling more complex solutions. Also, applied the PHP PSR-2 coding standard.

Plugin tested on local environment.

@75th
Copy link

75th commented Feb 1, 2023

I don't think this goes far enough. Instead of PluginName/Includes/PluginNameActivator, you could just have PluginName/Activator. I've got a branch in progress that does that, along with some reorganization to have traditional plugin stuff live alongside custom Gutenberg blocks, etc.

@75th
Copy link

75th commented Feb 1, 2023

(...and now that branch activates cleanly in WordPress.)

@albeertito7
Copy link
Author

I don't think this goes far enough. Instead of PluginName/Includes/PluginNameActivator, you could just have PluginName/Activator. I've got a branch in progress that does that, along with some reorganization to have traditional plugin stuff live alongside custom Gutenberg blocks, etc.

you can definitely organize your namespace as you wish of course, this is just a guide for those who want to orient themselves in this schema.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants