News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Dougal Campbell's Blog:
Suggestion WordPress Option Namespacing
December 11, 2009 @ 12:14:01

Dougal Campbell would like to suggest something to all of the WordPress and WordPress plugin developers out there to help make things clearer - namspacing for the options in the database.

I happened to be poking around in my database a while ago, particularly in the WordPress 'options' table for this blog. There's an awful lot of cruft hanging around from old plugins that I don't use anymore. I cleaned a few things out, but something hit me as I was perusing all those options: I can't always tell which options belong(ed) to which plugins, themes, or to the WordPress core.

He suggests that plugin developers use some sort of namespacing in their column/table names to help keep things split out a bit more from the core and from other plugins. This keeps those maintaining the site from having to dig into the code just to figure out what's associated. He lists a few advantages and disavantages to the approach, including both making it easir to find them but adding complexity in their use.

2 comments voice your opinion now!
wordpress namespace plugin


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso's Blog: Using Monkey Patching to store files in CouchDb using the standard filesystem

Miro Svrtan: Debugging Uploadify jQuery plugin with XDebug

IBuildings techPortal: PHP on Windows: The WinCache 1.0 Benchmark

DevShed: Hackers Compromise PHP Sites to Launch Attacks

Davey Shafik\'s Blog: Spring Cleaning (or a Move from Categories to Tags)


Community Events

Don't see your event here?
Let us know!


framework language opinion library introduction extension series laravel release psr7 api laravel5 voicesoftheelephpant interview wordpress podcast unittest community development conference

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework