xmlrpc_removepostdata( string $content )
XMLRPC XML content without title and category elements.
Parameters
- $content
-
(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 |
---|---|
WP-0.71 | Introduced. |