Filters the HTML for the retrieved generator type.
The dynamic portion of the hook name, $type, refers to the generator type.
Possible hook names include:
get_the_generator_atomget_the_generator_commentget_the_generator_exportget_the_generator_htmlget_the_generator_rdfget_the_generator_rss2get_the_generator_xhtml$genstring
$typestring
'html', 'xhtml', 'atom', 'rss2', 'rdf', 'comment', 'export'.return apply_filters( "get_the_generator_{$type}", $gen, $type );
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_the_generator_type