Ticket #5085: wp-free-gen.php

File wp-free-gen.php, 0.8 kB (added by docwhat, 1 year ago)
Line 
1 <?php
2 /*
3 Plugin Name: Free Gen
4 Description: WordPress includes generator tags in all it's outputs; feeds, opml, themes, etc.  This plugin removes the generator tags altogether.
5 Version: 1.0
6 Author: Christian Höltje
7 Author URI: http://docwhat.gerf.org/
8
9     This program is free software; you can redistribute it and/or modify
10     it under the terms of the GNU General Public License as published by
11     the Free Software Foundation; either version 3 of the License.
12
13     This program is distributed in the hope that it will be useful,
14     but WITHOUT ANY WARRANTY; without even the implied warranty of
15     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16     GNU General Public License for more details.
17 */
18
19 function wp_free_gen_filter ( $content ) {
20     return '';
21 }
22 add_filter('wp_get_generator', 'wp_free_gen_filter');
23
24
25 ?>
26