WordPress at a glance
function is not described

get_to_ping() WP 1.5.0

Retrieve URLs that need to be pinged.

  • Since 4.7.0 $post_id can be a WP_Post object.
Hooks in function
Return

Array.

Usage

get_to_ping( $post_id );
$post_id(int/WP_Post) (required)
Post Object or ID

Code of get to ping: wp-includes/post.php WP 5.2.2

<?php
function get_to_ping( $post_id ) {
	$post = get_post( $post_id );

	if ( ! $post ) {
		return false;
	}

	$to_ping = sanitize_trackback_urls( $post->to_ping );
	$to_ping = preg_split( '/\s/', $to_ping, -1, PREG_SPLIT_NO_EMPTY );

	/**
	 * Filters the list of URLs yet to ping for the given post.
	 *
	 * @since 2.0.0
	 *
	 * @param array $to_ping List of URLs yet to ping.
	 */
	return apply_filters( 'get_to_ping', $to_ping );
}