On this page
apply_filters( 'the_generator', string $generator_type, string $type )
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
File: wp-includes/general-template.php. View all references
echo apply_filters( 'the_generator', get_the_generator( $type ), $type ) . "\n";
Related
Used By
| Used By | Description |
|---|---|
| the_generator() wp-includes/general-template.php | Displays the generator XML or Comment for RSS, ATOM, etc. |
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_generator