WordPress开发者和主题制作者的搜索引擎



generic_ping ›

Since1.2.0
已弃用n/a
generic_ping ( $post_id = 0 )
参数:
  • (int) $post_id Post ID.
    Required: No
    默认:
返回:
  • (int) Same as Post ID from parameter
定义在:
文档:

Sends pings to all of the ping site services.



源码

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