常用函数-weblog_ping()

0条评论

常用函数-weblog_ping()

说明

发送一个pingback

用法

<?php weblog_ping( $server, $path ) ?>

参数

$server

(字符串)(可选)将要连接的博客主机

默认值:''

$path

(字符串)(必需)发送ping的路径

默认值:''

返回的值

(空)

该函数不返回任何值

示例

注释

  • 使用全局变量:(对象)$wp_version中含有所安装的wordpress版本序号
  • 用法: IXR_Client wordpress类
  • 用法:用get_option()检索'home'选项
  • 用法:用get_option()检索'blogname'选项
  • 用法:用get_bloginfo()检索'rss2_url'

修改记录

自1.2.0版本后

源文件

weblog_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.