首页 WordPress函数大全 get_the_content()

get_the_content()

2020-05-02 / 1905阅 / 悠然

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

get_the_content( string $more_link_text = null, bool $strip_teaser = false, WP_Post|object|int $post = null )

Retrieve the post content.

描述

参数

$more_link_text

(string)
(Optional)
Content for when there is more text.

Default value: null

$strip_teaser

(bool)
(Optional)
Strip teaser content before the more text. Default is false.

Default value: false

$post

(WP_Post|object|int)
(Optional)
WP_Post instance or Post ID/object. Default is null.

Default value: null

返回

(string)

大家谈论
    我的见解