WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get pung

Description

Retrieve URLs already pinged for a post.

Usage

<?php get_pung$post_id ?>

Parameters

$post_id
(integer) (required) Post ID.
Default: None

Return Values

(array) 
Returns array of pinged URLs.

Examples

   <?php 
   $pinged_posts = get_pung( $post->ID );
   foreach ( $pinged_posts as $pinged_post ) :
           if (!empty($pinged_post) ) {
       echo 'Incoming Link: <a href="'.$pinged_post.'" rel="external">'.$pinged_post.'</a>';
           }
   endforeach; 
   ?>

Notes

Change Log

Since: 1.5.0

Source File

get_pung() is located in wp-includes/post.php.

Related

See also index of Function Reference and index of Template Tags.