检索已为帖子添加的网址。

原型

get_pung( int|WP_Post $post_id )

参数

$post_id (int|WP_Post) (Required) 邮政ID或对象。

返回值

(array)  

源文件

路径:wp-includes/post.php

<?php
...
function get_pung( $post_id ) {
	$post = get_post( $post_id );
	if ( ! $post ) {
		return false;
	}
	$pung = trim( $post->pinged );
	$pung = preg_split( '/s/', $pung );
	/**
	 * Filters the list of already-pinged URLs for the given post.
	 *
	 * @since 2.0.0
	 *
	 * @param array $pung Array of URLs already pinged for the given post.
	 */
	return apply_filters( 'get_pung', $pung );
}
...
?>

其他

英文文档:https://developer.wordpress.org/reference/functions/get_pung/