admin管理员组

文章数量:1414930

I've been looking at the documentation for wp_list_comments(). One of the options is 'short_ping' which is documented thus:

( boolean ) Whether you want to use a short ping.

What on earth is a "short ping" and why would I want one?

I've been looking at the documentation for wp_list_comments(). One of the options is 'short_ping' which is documented thus:

( boolean ) Whether you want to use a short ping.

What on earth is a "short ping" and why would I want one?

Share Improve this question edited Sep 12, 2019 at 3:28 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Sep 12, 2019 at 2:46 Matthew Brown aka Lord MattMatthew Brown aka Lord Matt 1,0683 gold badges13 silver badges34 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 3

This option is used to output a pingback comment. It's passed to the Walker_Comment class, and if it's set to true, it will output something similar to this:

<li>
    <div class="comment-body">
        Pingback: <a href="author-url-here" rel="external nofollow" class="url">Author Name</a>
    </div>

The author URL is the field that users enter when filling out the comment form. Note that the closing </li> is missing intentionally.

本文标签: commentsIn wplistcomments()what is a shortping