I recently needed to add some code just before the closing header tag on my theme pages, via a WordPress Plugin.
Of course, I made use of the
wp_head action hook which is perfect for this task. However, my requirement was a little more specific than this. What I actually needed was to make sure the code was guaranteed to be the LAST code added right before the closing head tag. Read More
One way to add a bit of extra uniqueness to your theme is to include a new default avatar. The standard one we all know and love is the ‘Mystery Man’ avatar as seen below.
Update: Plugin Options Starter Kit
I have now written a Plugin options starter kit for people who want to learn how to put together a Plugin options form using the WordPress Settings API. You can see more information about the Plugin and download the latest version here.
Have fun, and be sure to let me know what other features you want added in future versions!
In this post I discuss the WordPress Settings API and how you can leverage them for use in your own plugins. Firstly there is coverage of the API in general and the various functions available together with their usage. After that there is a tutorial section with an example walk through of how to add options to a new sub menu page under the Settings Menu.
The Settings API was first added in WordPress 2.7 to make things more efficient when it came to adding options pages for your plugins (and themes) to the WordPress admin area. Until recently I was still doing things the ‘old’ way which involved doing all the form creation and submission handling yourself, checking for $_POST variables, manual security checks etc. Whilst this worked fine it was also cumbersome and time consuming to implement, and making changes was awkward.