xmlrpc_removepostdata

XMLRPC XML content without title and category elements.

Description

(string) xmlrpc_removepostdata( (string) $content ); 

Returns (string)

XMLRPC XML Request content without title and category elements.

Parameters (1)

0. $content (string)
XML-RPC XML Request content.

Usage

  1. if ( !function_exists( 'xmlrpc_removepostdata' ) ) { 
  2. require_once ABSPATH . WPINC . '/functions.php'; 
  3.  
  4. // XML-RPC XML Request content. 
  5. $content = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = xmlrpc_removepostdata($content); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/functions.php  
  1. function xmlrpc_removepostdata( $content ) { 
  2. $content = preg_replace( '/<title>(.+?)<\/title>/si', '', $content ); 
  3. $content = preg_replace( '/<category>(.+?)<\/category>/si', '', $content ); 
  4. $content = trim( $content ); 
  5. return $content;