wpseek.com
A WordPress-centric search engine for devs and theme authors



generic_ping › WordPress Function

Since1.2.0
Deprecatedn/a
generic_ping ( $post_id = 0 )
Parameters:
  • (int) $post_id Post ID.
    Required: No
    Default:
Returns:
  • (int) Same post ID as provided.
Defined at:
Codex:

Sends pings to all of the ping site services.



Source

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