get_to_ping() – Retrieves URLs that need to be pinged.
You appear to be a bot. Output may be restricted
Description
Retrieves URLs that need to be pinged.
Usage
$string[]|false = get_to_ping( $post );
Parameters
- $post
- ( int|WP_Post ) required – Post ID or post object.
Returns
string[]|false List of URLs yet to ping.
Source
File name: wordpress/wp-includes/post.php
Lines:
1 to 19 of 19
function get_to_ping( $post ) { $post = get_post( $post ); 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 string[] $to_ping List of URLs yet to ping. */ return apply_filters( 'get_to_ping', $to_ping ); }