Un motore di ricerca WordPress per sviluppatori e autori di temi



generic_ping ›

Da1.2.0
Deprecaton/a
generic_ping ( $post_id = 0 )
Parametri:
  • (int) $post_id Post ID.
    Richiesto: No
    Default:
Ritorna:
  • (int) Same as Post ID from parameter
Definito a:
Codex:

Sends pings to all of the ping site services.



Sorgenti

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