wpseek.com
A WordPress-centric search engine for devs and theme authors



xmlrpc_removepostdata › WordPress Function

Since0.71
Deprecatedn/a
xmlrpc_removepostdata ( $content )
Parameters:
  • (string) $content XML-RPC XML Request content.
    Required: Yes
Returns:
  • (string) XMLRPC XML Request content without title and category elements.
Defined at:
Codex:

XMLRPC XML content without title and category elements.



Source

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