wp_generator() WordPress Function

The wp_generator() function is used to generate and return a WordPress code generator. The function can be used to generate a WordPress code for a specific plugin or theme, or for an entire site. The function can be used to generate a WordPress code for a specific content type, or for an entire site.

wp_generator() #

Displays the XHTML generator that is generated on the wp_head hook.


Description

See ‘wp_head’.


Top ↑

Source

File: wp-includes/general-template.php

function wp_generator() {
	/**
	 * Filters the output of the XHTML generator tag.
	 *
	 * @since 2.5.0
	 *
	 * @param string $generator_type The XHTML generator.
	 */
	the_generator( apply_filters( 'wp_generator_type', 'xhtml' ) );
}


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