常用函数-generic_ping()

0条评论

常用函数-generic_ping()

说明

pings 发送给所有ping网站服务

用法

<?php generic_ping( $post_id ) ?>

参数

$post_id

(整数)(必需)文章编号。仅作为被返回的值使用

默认值:0

返回的值

(整数)

返回原来的$post_id

示例

注释

  • $post_id和返回的值都不必为integer数据类型,但在WordPress中要求$post_id是integer数据类型
  • 用法:用 get_option()获取所有ping网站
  • 用法:为每个ping网站使用weblog_ping()

修改记录

自1.2.0版本后

源文件

generic_ping()位于 wp-includes/comment.php中。

相关资源

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.