WordPress at Your Fingertips
filter is not described

get_the_generator_(type) filter-hook . WP 2.5.0

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_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


add_filter( 'get_the_generator_(type)', 'filter_function_name_1121', 10, 2 );
function filter_function_name_1121( $gen, $type ){
	// filter...

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


Since 2.5.0 Introduced.

Where the hook is called

wp-includes/general-template.php 4760
return apply_filters( "get_the_generator_{$type}", $gen, $type );

Where in WP core the hook is used WordPress

Usage not found.