the_generator filter-hook . WP 2.5.0
Filters the output of the XHTML generator tag for display.
Usage
add_filter( 'the_generator', 'filter_function_name_4124', 10, 2 ); function filter_function_name_4124( $generator_type, $type ){ // filter... return $generator_type; }
- $generator_type(string)
- The generator output.
- $type(string)
- The type of generator to output. Accepts 'html', 'xhtml', 'atom', 'rss2', 'rdf', 'comment', 'export'.
Changelog
Since 2.5.0 | Introduced. |
Where the hook is called
the_generator
wp-includes/general-template.php 4677
echo apply_filters( 'the_generator', get_the_generator( $type ), $type ) . "\n";