New WordPress plugin

I’ve been creating a bunch of WordPress plugins recently. They are really easy to make and the documentation is great. I don’t really know much about PHP but it has the same structure as the way I write VBscript, i.e. write a bunch of functions, then call them with parameters.

Most of the plugins I’ve made have been for the Blogtown NZ site, but I’ve made a couple for standard WordPress installs too. I’m also working on a bigger one at the moment which started out as a time tracking plugin, but is now turning into a full service desk application.

This is my latest one, and I love it because of its simplicity and raw power: “Amanzi Text Control”. All it does is remove the filters that process posts and pages when rendering the output. What this means is that you can put anything in a post, including JavaScripts, CSS, HTML tags without worrying about them being stripped or modified.

<?php
/*
Plugin Name: Amanzi Text Control
Plugin URI: http://stuart.amanzi.co.nz/tag/amanzi-text-control
Description: Inspired by Jeff Minard's Text Control plugin. This plugin does one thing - removes WordPress's fomatting filters from the posts and pages.
Author: Stuart Maxwell
Version: 1.0
Author URI: http://stuart.amanzi.co.nz
*/
remove_filter('the_content', 'wpautop');
remove_filter('the_content', 'wptexturize');
remove_filter('the_excerpt', 'wpautop');
remove_filter('the_excerpt', 'wptexturize');
?>

Leave a Reply

Your email address will not be published. Required fields are marked *