get_the_generator_(type) хук-фильтр . WP 2.5.0
Filters the HTML for the retrieved generator type.
The dynamic portion of the hook name, $type, refers to the generator type.
Использование
add_filter( 'get_the_generator_(type)', 'filter_function_name_3650', 10, 2 ); function filter_function_name_3650( $gen, $type ){ // filter... return $gen; }
- $gen(строка)
- The HTML markup output to wp_head().
- $type(строка)
- The type of generator. Accepts 'html', 'xhtml', 'atom', 'rss2', 'rdf', 'comment', 'export'.
Список изменений
С версии 2.5.0 | Введена. |
Где вызывается хук
get_the_generator_(type)
wp-includes/general-template.php 4755
return apply_filters( "get_the_generator_{$type}", $gen, $type );