xmlrpc_removepostdata()
xmlrpc_removepostdata( string $content ) 没有title和catego…
xmlrpc_removepostdata( string $content )
没有title和category元素的XMLRPC XML内容。
XMLRPC XML content without title and category elements.
没有title和category元素的XMLRPC XML内容。
XMLRPC XML content without title and category elements.
目录锚点:#参数#源码
参数(Parameters)
| 参数 | 类型 | 说明 |
|---|---|---|
| $content | (string) | XML-RPC XML请求内容。 |
源码(Source)
/**
* XMLRPC XML content without title and category elements.
*
* @since 0.71
*
* @param string $content XML-RPC XML Request content.
* @return string XMLRPC XML Request content without title and category elements.
*/
function xmlrpc_removepostdata( $content ) {
$content = preg_replace( '/(.+?)< itle="">/si', '', $content );
$content = preg_replace( '/<category>(.+?)< ategory="">/si', '', $content );
$content = trim( $content );
return $content;
}
</></category></>| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 0.71 | wp-includes/functions.php | 15 | 11 |
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。





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