没有标题和类别元素的XMLRPC XML内容。
原型
xmlrpc_removepostdata( string $content )
参数
$content
(string)
(Required)
XML-RPC XML请求内容。
返回值
(string)
XMLRPC XML请求没有标题和类别元素的内容。
源文件
路径:wp-includes/functions.php
<?php
...
function xmlrpc_removepostdata( $content ) {
$content = preg_replace( '/<title>(.+?)</title>/si', '', $content );
$content = preg_replace( '/<category>(.+?)</category>/si', '', $content );
$content = trim( $content );
return $content;
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/xmlrpc_removepostdata/