Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WordPress Plugin Development [closed]

Besides the CODEX what resources do you recommend to help a person new to creating plugins help create a WordPress plugin. I have an idea, but need a bit better explanation than what is in the CODEX to get started.

UPDATE: Is there a book that I could buy to help me out with this?

like image 739
Mike Wills Avatar asked May 08 '26 17:05

Mike Wills


2 Answers

Having written the MyBlogLog plugin (the original one, that is) I found that the Wordpress Hooks list (can't remember the link offhand) was incredibly useful, as was the sample code from the Codex and WP Install files. Reading through other developer's plugins is also a good way to learn, as you can see how they implemented things and use those techniques to save yourself some R&D time.

What are you looking to create, anyways?

Edit:

I posted a comment with this, but just in case it gets lost...

For your specific needs, you're going to want to store data and be able to manage and retrieve it so creating a custom database table in your plugin is something you will want to do. See this codex link:

http://codex.wordpress.org/Creating_Tables_with_Plugins

Then you can just add your management code into the admin screens using the techniques found on this Codex page:

http://codex.wordpress.org/Adding_Administration_Menus

If you want to display the items on a page, you can either write yourself a custom PHP WP Page template to query the DB directly:

http://codex.wordpress.org/Pages#Page_Templates

Or just add a hook filter on your plugin to write the results to the page based on a keyword you specify:

http://codex.wordpress.org/Plugin_API#Filters

like image 141
willasaywhat Avatar answered May 11 '26 07:05

willasaywhat


Here is a useful set of links on how to do Wordpress plugins. Be aware that it is relatively "advanced" (in that it introduces a number of object oriented methods to the process). You should really read the Wordpress Codex stuff first.

like image 42
rg88 Avatar answered May 11 '26 07:05

rg88



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!