I am new to plugin development. So please correct me, wherever I get it wrong.
I have a website which needs a players plugin with the following needs:-
- An administrator controllable form for player registration, with some details of them.
- A listing page where all the registered players are to be shown.
- Registered players can be deleted & compared with each other.
- Showing some registered players (10 random players) in the WordPress theme in the front-end.
I have completed the activation of the plugin, along with database table creation and administrator menu options for this plugin. I have also completed the player registration interface, but without the database insertion code. But all of these have been done using normal procedural way.
I now have two headaches in completing the development of this plugin:-
- Develop this plugin in the OOP format, for support to future versions of WordPress.
- Complete the other requirements of this plugin.
How to proceed with the following (even with a little knowledge sharing)?
- Creating a WordPress plugin from scratch using the OOP way.
- Calling a web form (like, for player registration) using OOP.
- Submitting all these player information into the database using OOP.
- Showing a listing page (like, for registered players and positioning them) using OOP.
- Showing some players in the front-end of the WordPress theme, using either Template Tags or directly with the help of the plugin.
I have searched Google, tried to find some information in the Internet about these, but I haven't succeeded much with the OOP thing.
EDIT:- It will be very helpful and nice for all of us (new to WordPress OOP plugin development) to have some code snippet highlighting its use. If possible, you can also provide some article links which will properly describe how to write such OOP plugins.
Articles, like what "gulbrandr" provided, was helpful, and I also would like to thank "kovshenin" for sharing / mentioning links of some OOP plugins; but it will be very great if some more articles or any code snippet can be provided, describing the proper steps of developing the OOP plugins.