WordPress开发者和主题制作者的搜索引擎



the_generator ›

Since2.5.0
已弃用n/a
apply_filters( 'the_generator', get_the_generator( $type )
参数: (2)
  • (string) $generator_type The generator output.
    Required: Yes
  • (string) $type The type of generator to output. Accepts 'html', 'xhtml', 'atom', 'rss2', 'rdf', 'comment', 'export'.
    Required: Yes
定义在:
文档:

Filters the output of the XHTML generator tag for display.





源码

echo apply_filters( 'the_generator', get_the_generator( $type ), $type ) . "\n";