get_to_ping

Definition:
function get_to_ping($post_id) {}

Retrieve URLs that need to be pinged.

Parameters

  • int $post_id: Post ID

Defined filters

  • get_to_ping
    apply_filters('get_to_ping', $to_ping)

Source code

function get_to_ping($post_id) {

	global $wpdb;

	$to_ping = $wpdb->get_var( $wpdb->prepare( "SELECT to_ping FROM $wpdb->posts WHERE ID = %d", $post_id ));

	$to_ping = trim($to_ping);

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

	$to_ping = apply_filters('get_to_ping',  $to_ping);

	return $to_ping;

}

1863

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: