generic_ping()
最后更新于:2021-11-26 04:10:33
generic_ping( int$post_id)Sends pings to all of the ping site services.
参数
- $post_id
-
(int) (Required) Post ID.
响应
(int) Same as Post ID from parameter
源文件
文件: gc-includes/comment.php
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;
}