wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_pung › WordPress Function

Desde1.5.0
Obsoleton/a
get_pung ( $post )
Parâmetros:
  • (int|WP_Post) $post Post ID or object.
    Required: Yes
Retorna:
  • (string[]|false) Array of URLs already pinged for the given post, false if the post is not found.
Definido em:
Codex:
Log de mudanças:
  • 4.7.0

Retrieves URLs already pinged for a post.



Funções relacionadas: get_page, get_to_ping, get_plugins, get_pages, get_tag

Fonte

function get_pung( $post ) {
	$post = get_post( $post );

	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 );
}