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