WordPress.org

Make WordPress Core

Ticket #5085: wp-free-gen.php

File wp-free-gen.php, 841 bytes (added by docwhat, 7 years ago)
Line 
1<?php
2/*
3Plugin Name: Free Gen
4Description: WordPress includes generator tags in all it's outputs; feeds, opml, themes, etc.  This plugin removes the generator tags altogether.
5Version: 1.0
6Author: Christian Höltje
7Author 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
19function wp_free_gen_filter ( $content ) {
20    return '';
21}
22add_filter('wp_get_generator', 'wp_free_gen_filter');
23
24
25?>