get_the_generator

SummerySummery

Creates the generator XML or Comment for RSS, ATOM, etc.

Syntax

get_the_generator( string $type = '' )

DescriptionDescription

Returns the correct generator type for the requested output format. Allows for a plugin to filter generators on an individual basis using the ‘get_the_generator_$type’ filter.

ParametersParameters

$type

(string) (Optional) The type of generator to return - (html|xhtml|atom|rss2|rdf|comment|export).

Default value: ''

ReturnReturn

(string|void) The HTML content for the generator.

SourceSource

File: wp-includes/general-template.php


			

ChangelogChangelog

Changelog
Version Description
2.5.0 Introduced.
Scroll to Top