W3cubDocs

/WordPress

apply_filters( "get_the_generator_{$type}", string $gen, string $type )

Filters the HTML for the retrieved generator type.

Description

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

Parameters

$gen

(string) The HTML markup output to wp_head().

$type

(string) The type of generator. Accepts 'html', 'xhtml', 'atom', 'rss2', 'rdf', 'comment', 'export'.

Source

File: wp-includes/general-template.php

View on Trac

Changelog

Version Description
2.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_the_generator_type