Plugin Release: Short Comment Filter
Today I’m releasing a new plugin: Short Comment Filter
It automatically spams or deletes comments that are too short.
You can view more information about the plugin and download it here.
Today I’m releasing a new plugin: Short Comment Filter
It automatically spams or deletes comments that are too short.
You can view more information about the plugin and download it here.
When creating WordPress themes, one problem I’ve faced is using template tags and other functions which aren’t implemented in older versions of WordPress. Of course the best solution is for people to upgrade their version of WordPress, but you can’t exactly force people to do this. If you want to use new functions, but want to support people with older versions of WordPress, there’s something you can do. As an example, let’s look at wp_page_menu().
EDIT: Nick Ohrn pointed out that a function exists for doing this automatically. The following post is still a valid look at how this could be implemented if the functionality didn’t already exist, but it is better to use extract because it is likely more efficient.
Associative arrays are one of my favorite PHP features. They’re simple to use and easy to understand. Sometimes though, being able to reference the values of associative arrays with variables can be more convenient. Today I’m going to share a simple way to convert an associative array to variables.