the_generator WordPress Filter Hook

The the_generator WordPress hook is used to generate content for the WordPress website. This hook can be used to generate content for the front page, posts, pages, and other parts of the website.

apply_filters( 'the_generator', string $generator_type, string $type ) #

Filters the output of the XHTML generator tag for display.


Parameters

$generator_type

(string)The generator output.

$type

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


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More