首页 WordPress函数大全 get_the_generator()

get_the_generator()

2020-05-02 / 3337阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_the_generator( string $type = '' )

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

描述

Returns the correct generator type for the requested output format. Allows for a plugin to filter generators>‘get_the_generator_$type’ filter.

参数

$type

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

Default value: ''

返回

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

大家谈论
    我的见解