shellab's Avatar
shellab 4
1 Asked
0 Answered
0 Best
0
No one has voted on this question yet :(
3 years, 5 months ago

What good resources are there for learning how to effectively write a WordPress plugin that ages well?

I work on a WordPress plugin and I'm finding it gets harder and harder every time WordPress comes out with a new version to keep the plugin working properly. You end up with all these cases where the UI is broken in one version or the menus stop working in another. I couldn't seem to find on the WordPress site a best practices for properly architecting a large WordPress plugin. Is there such a resource?
Tip for best answer: M$5.00
Separate topics with commas, or by pressing return. Use the delete or backspace key to edit or remove existing topics.

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

What is Your Answer?

0
0
0

3 Answers

0
yoast's Avatar
yoast | 3 years, 5 months ago
4
As far as I know, there is no such thing. As a maintainer of 25+ WordPress plugins I know it's a lot of work. Best thing you can do is only maintain for the last version, now 2.7.

That's enough with WordPress anyway, as WordPress hardly maintains ANY backwards compatibility with regards to security & bugs, so people have to upgrade to not get hacked anyway.

What you should be doing anyway is using Subversion, either your own or the one provided by WordPress if you host your plugin open source with them, so people on previous versions can easily get older versions of your plugin.

Other than that, good places to ask about things like this would be either the WordPress support forums or the WordPress irc channel on irc.freenode.net.

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

Report Abuse

Post Reply Cancel
0
xentek's Avatar
xentek | 3 years, 5 months ago
4
Read the codex and the phpdoc blocks in the WordPress core. Use the most up to date functions, and always check for them function_exists(). Use google for the rest.

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

Report Abuse

Post Reply Cancel
0
sandeepeecs's Avatar
sandeepeecs | 3 years, 5 months ago
4
Here is the very good tutorial on wordpress plugin development
http://www.devlounge.net/publik/Devlounge%20-%20How%20to%20Write%20a%20Wordpress%20Plugin.pdf

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$
shellab's Avatar
shellab | 3 years, 5 months ago Report

This tutorial is interesting, but I'm not really looking for a basic "how to write a plugin" tutorial. I'm looking for more of an advanced tutorial on how to architect a large scale plugin for future WordPress compatibility.

Report Abuse

Post Reply Cancel

Learn something new with our FREE educational apps!

Private lessons in the comfort of your own home. Get back in shape or finally pick up a guitar with our great experts guiding you the whole way!
Learn Guitar
Learn Hip Hop
Learn Pilates