Multi-plugin Plugin

Multi-plugin is a very simple script that allows you to add small bits of PHP scripts, such as Wordpress filters, without having to make a plugin for them.

Download Multi-plugin

Installation is as simple as renaming the file to .php, uploading it to your server, activating it, and adding some script to the textbox (for example, I use the following code to remove the nofollow attribute from comments.)

  1. <?php
  2. add_filter('get_comment_author_link', 'aoi_follow');
  3. add_filter('comment_text', 'aoi_follow');
  4. function aoi_follow($link){
  5. return preg_replace('/(<a.*?rel[^>]*)nofollow(.*?)/','${1}${2}',$link);
  6. }
  7. ?>

You can also use the following to add the trailing slash back onto feeds, categories, pages, etc. in Wordpress 2.2+.

  1. <?php
  2. add_filter('user_trailingslashit', 'aoi_slashit',10,2);
  3. function aoi_slashit($string, $type=''){
  4. if($type == 'page' || $type == 'category'|| $type == 'month'|| $type == 'day'|| $type == 'paged'|| $type == 'feed'){
  5. return trailingslashit($string);
  6. }else{
  7. return $string;
  8. }
  9. }
  10. ?>
  11. Use the following to copy and paste the code.