xmlrpc_removepostdata() WordPress Function
The xmlrpc_removepostdata() function is used to remove post data for a specified XML-RPC method. This function is typically used to clean up data before it is passed to the XML-RPC method for processing.
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; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
0.71 | Introduced. |