Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_pung ›

Depuis1.5.0
Dépréciéen/a
get_pung ( $post_id )
Paramètres:
  • (int|WP_Post) $post_id Post ID or object.
    Requis: Oui
Retourne:
  • (bool|string[]) Array of URLs already pinged for the given post, false if the post is not found.
Défini(e) dans:
Codex:
Changelog:
  • 4.7.0

Retrieve URLs already pinged for a post.



Fonctions en relation: get_page, get_to_ping, get_plugins, get_pages, get_tag

Source

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