apply_filters( ‘the_generator’, string $generator_type, string $type )

In this article

Filters the output of the XHTML generator tag for display.

Parameters

$generator_typestring
The generator output.
$typestring
The type of generator to output. Accepts 'html', 'xhtml', 'atom', 'rss2', 'rdf', 'comment', 'export'.

Source

echo apply_filters( 'the_generator', get_the_generator( $type ), $type ) . "\n";

Changelog

VersionDescription
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.