常用函数-xmlrpc_getpostcategory()

0条评论

说明

XMLRPC XML中检索日志所属分类。

若未找到分类元素,可用默认日志分类来代替。返回的类型可能是$post_default_category。若找到分类元素,则为数组。

用法

<?php xmlrpc_getpostcategory( $content ) ?>

参数

$content

(字符串)(必需)XMLRPC XML请求内容

默认值:None

返回的值

(字符串)

日志所属分类列表或分类名

示例

注释

  • 使用全局变量:(未知)$post_default_category

函数历史

始见于0.71版本

源文件

xmlrpc_getpostcategory()位于 wp-includes/functions.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.