The NHP Theme Options Framework was introduced to Github around two weeks ago by Lee Mason. It’s basically the same Settings API that’s already built into Core, but comes with a bunch of “field types” you can use.
Is it easier to use than the Settings API directly? Well, one might argue, but I’d say “no”. To get an option with WordPress you just call
get_option, while in NHP you need to define the
$NHP_Options global and then use its
show methods. It looks like both methods will fail with a notice, if the array key does not exist, and the
show method will fail silently if the requested option is an array, try and debug that!
Does it look sexy? Definitely. Is Lee reinventing the wheel? Looks like he is, and tabs are supposed to go on top, like on all the other screens in WordPress — future-proof, remember? Anyway, let’s see where this ends up in a month or two, I’m pretty sure it will find adopters.
Feel free to share your thoughts in the comments section below. Thanks for rating this entry, and don’t forget to follow the blog by e-mail or using your WordPress.com account.