generic_ping()
generic_ping( int $post_id ) 向所有ping站点服务发送ping。Sends pi…
generic_ping( int $post_id )
向所有ping站点服务发送ping。
Sends pings to all of the ping site services.
目录锚点:#参数#返回#源码
参数(Parameters)
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| $post_id | (int) | 必需 | 邮政编码。 |
返回(Return)
(int)与Post ID from参数相同
源码(Source)
/**
* Sends pings to all of the ping site services.
*
* @since 1.2.0
*
* @param int $post_id Post ID.
* @return int Same as Post ID from parameter
*/
function generic_ping( $post_id = 0 ) {
$services = get_option('ping_sites');
$services = explode("
", $services);
foreach ( (array) $services as $service ) {
$service = trim($service);
if ( '' != $service )
weblog_ping($service);
}
return $post_id;
}| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 1.2.0 | wp-includes/comment.php:2780 | 1 function | 2 |
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。





还没有任何评论,赶紧来占个楼吧!