get_pung()
最后更新于:2021-11-26 23:18:23
get_pung( int|GC_Post$post_id)Retrieve URLs already pinged for a post.
参数
- $post_id
-
(int|GC_Post) (Required) Post ID or object.
响应
(string[]|false) Array of URLs already pinged for the given post, false if the post is not found.
源文件
文件: gc-includes/post.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 string[] $pung Array of URLs already pinged for the given post.
*/
return apply_filters( 'get_pung', $pung );
}