xmlrpc_removepostdata( string $content )

XMLRPC XML content without title and category elements.


Parameters Parameters

$content

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


Top ↑

Return Return

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


Top ↑

Source 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;
}


Top ↑

Changelog Changelog

Changelog
Version Description
0.71 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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