apply_filters( "get_the_generator_{$type}", string $gen, string $type )
- Since
- 2.5.0
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_atomget_the_generator_commentget_the_generator_exportget_the_generator_htmlget_the_generator_rdfget_the_generator_rss2get_the_generator_xhtml
Compatibility
- WordPress
- since 2.5.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$genstring- The HTML markup output to wp_head().
$typestring- The type of generator. Accepts 'html', 'xhtml', 'atom', 'rss2', 'rdf', 'comment', 'export'.
Where this hook fires · 1
wp-includes/general-template.php:5470get_the_generator()
Source code
* @since 2.5.0 * * @param string $gen The HTML markup output to wp_head(). * @param string $type The type of generator. Accepts 'html', 'xhtml', 'atom', * 'rss2', 'rdf', 'comment', 'export'. */ return apply_filters( "get_the_generator_{$type}", $gen, $type );} /** * Outputs the HTML checked attribute. * * Compares the first two arguments and if identical marks as checked.Changelog
Introduced in 2.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.