Definition:
function xmlrpc_removepostdata( $content ) {}
XMLRPC XML content without title and category elements.
Parameters
- string $content: XMLRPC XML Request content
Return values
returns:XMLRPC XML Request content without title and category elements.
Source code
function xmlrpc_removepostdata( $content ) {
$content = preg_replace( '/<title>(.+?)<\/title>/si', '', $content );
$content = preg_replace( '/<category>(.+?)<\/category>/si', '', $content );
$content = trim( $content );
return $content;
}
4287

February 12, 2011 


No comments yet... Be the first to leave a reply!