xmlrpc_removepostdata( string $content ): string

XMLRPC XML content without title and category elements.


Parameters

$content string Required
XML-RPC XML Request content.

Top ↑

Return

string XMLRPC XML Request content without title and category elements.


Top ↑

Source

File: wp-includes/functions.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
0.71 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.