apply_filters( “get_the_generator_{$type}”, string $gen, string $type )

In this article

Filters the HTML for the retrieved generator type.

Description

The dynamic portion of the hook name, $type, refers to the generator type.

Possible hook names include:

  • get_the_generator_atom
  • get_the_generator_comment
  • get_the_generator_export
  • get_the_generator_html
  • get_the_generator_rdf
  • get_the_generator_rss2
  • get_the_generator_xhtml

Parameters

$genstring
The HTML markup output to wp_head() .
$typestring
The type of generator. Accepts 'html', 'xhtml', 'atom', 'rss2', 'rdf', 'comment', 'export'.

Source

return apply_filters( "get_the_generator_{$type}", $gen, $type );

Changelog

VersionDescription
2.5.0Introduced.

User Contributed Notes

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