xmlrpc_removepostdata( string $content )

XMLRPC XML content without title and category elements.

Parameters

$content

(string) (Required) XML-RPC XML Request content.

Return

(string) XMLRPC XML Request content without title and category elements.

Source

File: wp-includes/functions.php

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

Changelog

Version Description
0.71 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/xmlrpc_removepostdata