Uma área de pesquisa sobre o WordPress para devs e autores do tema



xmlrpc_removepostdata ›

Desde0.71
Obsoleton/a
xmlrpc_removepostdata ( $content )
Parâmetros:
  • (string) $content XML-RPC XML Request content.
    Required: Yes
Retorna:
  • (string) XMLRPC XML Request content without title and category elements.
Definido em:
Codex:

XMLRPC XML content without title and category elements.



Fonte

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