function the_generator( $type ) {}

Display the generator XML or Comment for RSS, ATOM, etc.
Returns the correct generator type for the requested output format. Allows for a plugin to filter generators overall the the_generator filter.


  • string $type: The type of generator to output – (html|xhtml|atom|rss2|rdf|comment|export).

Defined filters

  • the_generator
    apply_filters('the_generator', get_the_generator($type)

Source code

function the_generator( $type ) {

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



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: