WordPress plugin intelligence profile

Text Filter Suite

Advanced filtering functions for WordPress, including the Talk Like a Pirate Day filters.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.3
Current version1.4
WordPress coverageTested up to WordPress 4.3
Minimum stackWP 1.5 · PHP —
Directory statusactive
Last directory update3 Jun 201511y ago
Active installationsNewAdoption metric — not a quality score
WordPress.org rating4.5 / 5 from 2 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Text Filter Suite version 1.4 as active, updated 11y ago and tested up to WordPress 4.3.

Overview

About this plugin

The Text Filter Suite (“TFS”, hereafter) is a WordPress plugin which

adds some new text filtering functions. In a sense, the core TFS

functions could be considered a “meta filter”, because they actually

provide a framework that let you construct new filters fairly easily.

They also provide an easy way to apply filters to post content and

comments on a per-post basis.

Huh? Can you repeat that in English?

Okay, let’s try a real-world example. A common feature on many web

sites is the automatic handling of acronyms. You’ll often see an

acronym such as “XHTML” displayed in an alternate style, and when you

hover your mouse pointer over it, you get a tool-tip which displays the

definition (“eXtended HyperText Markup Language”, in this case). You

don’t want to have to type in the markup for this every time you post

something, and automation is what computers are for, right? So, there

are several plugins available to handle this sort of automated text

subsitution.

TFS comes with the “TFS Acronymit” plugin to perform this function.

It’s based on Matt Mullenweg’s original “Acronymit” function, but with

a couple of improvements. In Matt’s original function, you had to keep

the acronym list sorted, longest-to-shortest, and it could get confused

by recursive acronyms like ‘PHP’ (“PHP Hyptertext Processor”) or GNU

(“GNU’s Not Unix”). TFS Acronymit does not have those restrictions.

For those who think that expansion of technical acronyms is “teh sux0r”

e. “boring”), TFS comes with a variety of more entertaining filters.

The current set includes “chef”, “fudd”, “jive”, “kraut”, “pirate”, and

of course, the aforementioned “acronymit”. As a word of caution, the

“jive” and “kraut” filters are not what you would call “politically

correct”.

By default, if the “TFS Pirate” filter is active, it will automatically

apply itself to all content on Talk Like a Pirate Day (September 19).

If you do not want this filter to automatically activate, set the value

of the “$talk_like_a_pirate” variable at the top of the plugin source

to “false”.

The “TFS Acronymit” filter is automatically applied to all posts

whenever it is active. You do not need to set special post custom

fields in order to use it. Just activate the plugin, and you’re ready.

To modify which acronyms are defined, see the list at the beginning of

the plugin, and modify it as you like, following the format you see

there.

It is possible to use the TFS core without activating any additional

plugins. You can do this with any built-in PHP function accepts a

single string as a parameter and returns a string. For example, you

could set a post custom “content_filter” with the value “strrev”, and

the contents of the post would be displayed backwards, or with a value

of “strtoupper” to convert the content to all uppercase text.

You can only specify a single function in each post custom field.

However, you can chain multiple functions together by using the key

more than once. For instance, if you wanted all comments for a post to

display in uppercase Elmer Fudd text, you would set two post custom

fields:

comment_filter = strtoupper

comment_filter = fudd

HOWEVER, note that using PHP built-in functions in this way will bypass

the power of the filter_cdata_content() function, which means that it

can and will mangle your HTML tags, possibly rendering them useless.

For example, applying the strrev function to the string “

<

p>” will

transform it into “>p<“, which will confuse your browser in new and

wonderful ways.

NOTE: These filters can be very CPU intensive. For one thing, they make

extensive use of regular expressions, which can be expensive on their own.

And for another, they break your content into many small chunks, in order to

separate the filterable text from the HTML code, and the filters run

separately on each text chunk found. This probably won’t be a problem in

most cases. But if you have long posts being filtered, and you get a lot of

traffic, it could start to add up. , WP Super Cache,

or W3 Total Cache) would probably help in that case.

The Future

0 of this plugin which will be completely

refactored. You can probably expect to see:

* Consolidate the code so that it is not a collection of separately-enabled

mini-plugins.

* PHP5 OOP architecture to encapsulate everything.

* An actual admin interface to select which filters are enabled, which

bits of content you will allow to be filtered (post titles, post content, comments,

blog title, widget titles, etc), whether to auto-activate the Pirate

filter on Talk Like a Pirate Day, etc.

Eventually, there may also be a way to edit the string substitutions so that

you can tailor it to your tastes.

Credits

I created TFS on my own, but I borrowed ideas from several sources. Here are

some links you might also want to check out:

net/scripts/acronymit

com/archive/2003/09/19/aaar

I borrowed, modified, and mangled a ton of stuff from Adam Kalsey's "MovableJive" plugin for Movable Type. See tfs-jive, tfs-chef, tfs-fudd, and tfs-kraut. com/2003/02/movablejive/

org/weblog/archives/2004/05/tag-you-re-it

com/

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • comments
  • content
  • filters
  • fun
  • funny
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.3

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.3.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.3
Minimum requirementsWordPress 1.5 · PHP not listed
Update activity3 Jun 201511y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.