WordPress-Plugin-Boilerplate
WordPress-Plugin-Boilerplate copied to clipboard
How to start?
How do I add an item in the admin menu that calls a page with hello, world?
Take a look a the Plugin Developer Handbook: https://developer.wordpress.org/plugins/administration-menus/
Plugin ought to have a default admin page loaded
I found an article about how to set up an admin settings page: https://blog.wplauncher.com/create-wordpress-plugin-settings-page/
I'm still struggling with the basic usage of the boilerplate, but well.. it's a starting point at least.
Plugin can have a commented out admin menu and admin page.
In my fork, there's a sample Settings page.
I was investigating a similar issue and came across the demo plugin built using this boilerplate by the boilerplate developer: https://github.com/DevinVinson/wppb-demo-plugin
Referencing this demo I was able to implement the plugin settings as intended. There is actually a settings class that is omitted from the boilerplate, and which is critical for rounding out the plugin. I'm not sure why the boilerplate does not include this class or its implementation. See demo plugin -> includes/class-wppb-demo-plugin.php -> define_admin_hooks(). and also admin/class-wppb-demo-plugin-settings.php