Which is the right way to create customizer option for plugin?
Can we add customizer option using this guideline? https://docs.layerswp.com/create-an-extension-adding-customizer-controls/
OR As in github demo child theme option?
Can you provide new updated layers child theme demo because its not updates many newbies not able to develop anything properly.
Possible Answers to Your Question:
If you are building a plugin, then you need to follow the extension guide. For a child theme, follow the child theme guide. This is important as implementation and syntax vary from theme to plugin.
The child theme demo was unlinked from the guide because too many people were using it asa base for their themes and not removing code or customizing it properly which leads to issues in our code sphere. The guide walks you through step by step to create the files manually – this ensures they are not only customized correctly, but that tutorial code you don’t need isn’t running on your site and you understand completely all parts of your theme.