Advertisements

generic_ping

Definition:
function generic_ping($post_id = 0) {}

Sends pings to all of the ping site services.

Parameters

  • int $post_id: Post ID. Not actually used.

Return values

returns:Same as Post ID from parameter

Source code

function generic_ping($post_id = 0) {

	$services = get_option('ping_sites');



	$services = explode("\n", $services);

	foreach ( (array) $services as $service ) {

		$service = trim($service);

		if ( '' != $service )

			weblog_ping($service);

	}



	return $post_id;

}

1106

Advertisements

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 )

Google+ photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

%d bloggers like this: