wpseek.com
WordPress开发者和主题制作者的搜索引擎



xmlrpc_removepostdata › WordPress Function

Since0.71
已弃用n/a
xmlrpc_removepostdata ( $content )
参数:
  • (string) $content XML-RPC XML Request content.
    Required: Yes
返回:
  • (string) XMLRPC XML Request content without title and category elements.
定义在:
文档:

XMLRPC XML content without title and category elements.



源码

function xmlrpc_removepostdata( $content ) {
	$content = preg_replace( '/<title>(.+?)<\/title>/si', '', $content );
	$content = preg_replace( '/<category>(.+?)<\/category>/si', '', $content );
	$content = trim( $content );
	return $content;
}