Make WordPress Core

Ticket #16309: addfiltertest.php

File addfiltertest.php, 360 bytes (added by matsubobo, 14 years ago)

test code

Line 
1<?php
2/*
3Plugin Name: add_filter test
4Plugin URI: http://matsu.tymy.net/
5Description: Contents rewrite test
6Version: 1.0.1
7Author: Yuki Matsukura
8Author URI: http://matsu.tymy.net/
9*/
10function myfunction($content) {
11        print 'this block is passed.';
12        $content = 'test'.$content;
13        return $content;
14}
15add_filter('the_content', 'myfunction');
16