I would like to develop my hivepress plugins and actualy i debug my code with error log on backend features but i don’t know how i can correctly develop on WordPress, did i have to use “bedrock” environnement or something like that ?
Could you explain your coding methods, possible debugging methods, etc. ?
If you want to develop a custom extension for HivePress (to customize the existing functionality or add new) I recommend this tutorial https://docs.hivepress.io/developer-docs/tutorials/create-a-custom-hivepress-extension Bedrock is not needed, once you add the main file with the function which adds the extension path to a list of HivePress extensions, it will recognize the extension directory as its own (detecting anything custom you add, e.g. forms, emails, templates, etc.
Thank you for your reply,
However, when you develop your extensions, you use more advanced debugging methods than simple error_log, don’t you? Such as XDebug or other more advanced debugging systems?
What kind of environments do you work on? A simple Wordpress installation? Do you use docker / git etc?
Sure, but it’s a matter of preference, you can use LocalWP for a local WordPress instance + coding environment and tools of your preference (e.g. VS Code + Xdebug and other add-ons if needed), GitHub for keeping track of the code changes, etc. For a simple extension that just adjusts a few features within HivePress a complex setup may not be needed, the most important thing is the implementation - a HivePress extensions is basically a WP plugin which adds the plugin path to an array of paths via hivepress/v1/extensions hook, this way HivePress detects it as an extension and scans its files, connecting/using them automatically.