wp_generator_type
Filter HookDescription
Filters the output of the XHTML generator tag.Hook Information
File Location |
wp-includes/general-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 5100 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$generator_type
|
The XHTML generator. |
Usage Examples
Basic Usage
<?php
// Hook into wp_generator_type
add_filter('wp_generator_type', 'my_custom_filter', 10, 1);
function my_custom_filter($generator_type) {
// Your custom filtering logic here
return $generator_type;
}
Source Code Context
wp-includes/general-template.php:5100
- How this hook is used in WordPress core
<?php
5095 *
5096 * @since 2.5.0
5097 *
5098 * @param string $generator_type The XHTML generator.
5099 */
5100 the_generator( apply_filters( 'wp_generator_type', 'xhtml' ) );
5101 }
5102
5103 /**
5104 * Displays the generator XML or Comment for RSS, ATOM, etc.
5105 *
PHP Documentation
<?php
/**
* Filters the output of the XHTML generator tag.
*
* @since 2.5.0
*
* @param string $generator_type The XHTML generator.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/general-template.php
Related Hooks
Related hooks will be displayed here in future updates.