首页 WordPress函数大全 get_extended()

get_extended()

2020-05-01 / 3870阅 / 悠然

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

get_extended( string $post )

Get extended entry info (<!--more-->).

描述

There should not be any space after the second dash and before the word ‘more’. There can be text or space(s) after the word ‘more’, but won’t be referenced.

The returned array has ‘main’, ‘extended’, and ‘more_text’ keys. Main has the text before the <!--more-->. The ‘extended’ key has the content after the <!--more--> comment. The ‘more_text’ key has the custom "Read More" text.

参数

$post

(string)
(Required)
Post content.

返回

(string[]) Extended entry info.

  • 'main'
    (string) Content before the more tag.
  • 'extended'
    (string) Content after the more tag.
  • 'more_text'
    (string) Custom read more text, or empty string.
大家谈论
    我的见解