DevinVinson / WordPress-Plugin-Boilerplate

[WordPress] A foundation for WordPress Plugin Development that aims to provide a clear and consistent guide for building your plugins.
http://wppb.io
7.66k stars 2.25k forks source link

How to start? #505

Open lpserra opened 5 years ago

lpserra commented 5 years ago

How do I add an item in the admin menu that calls a page with hello, world?

tomlschmidt commented 5 years ago

Take a look a the Plugin Developer Handbook: https://developer.wordpress.org/plugins/administration-menus/

simplenotezy commented 5 years ago

Plugin ought to have a default admin page loaded

reyneke-vosz commented 4 years ago

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.

sabithpocker commented 4 years ago

Plugin can have a commented out admin menu and admin page.

adamradocz commented 4 years ago

In my fork, there's a sample Settings page.

dmuellerstl commented 4 years ago

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