get_pung

Retrieve URLs already pinged for a post.

Description

(array) get_pung( (int|WP_Post) $post_id ); 

Returns (array)

Parameters (1)

0. $post_id (int|WP_Post)
Post ID or object.

Usage

  1. if ( !function_exists( 'get_pung' ) ) { 
  2. require_once ABSPATH . WPINC . '/post.php'; 
  3.  
  4. // Post ID or object. 
  5. $post_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = get_pung($post_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/post.php  
  1. function get_pung( $post_id ) { 
  2. $post = get_post( $post_id ); 
  3. if ( ! $post ) { 
  4. return false; 
  5.  
  6. $pung = trim( $post->pinged ); 
  7. $pung = preg_split( '/\s/', $pung ); 
  8.  
  9. /** 
  10. * Filters the list of already-pinged URLs for the given post. 
  11. * @since 2.0.0 
  12. * @param array $pung Array of URLs already pinged for the given post. 
  13. */ 
  14. return apply_filters( 'get_pung', $pung );