xmlrpc_removepostdata

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

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: