xmlrpc_getposttitle() – Retrieve post title from XMLRPC XML.
You appear to be a bot. Output may be restricted
Description
Retrieves post title from XMLRPC XML.
If the title element is not part of the XML, then the default post title from the $post_default_title will be used instead.
Usage
$string = xmlrpc_getposttitle( $content );
Parameters
- $content
- ( string ) required – XMLRPC XML Request content
Returns
string Post title
Source
File name: wordpress/wp-includes/functions.php
Lines:
1 to 9 of 9
function xmlrpc_getposttitle( $content ) { global $post_default_title; if ( preg_match( '/<title>(.+?)<\/title>/is', $content, $matchtitle ) ) { $post_title = $matchtitle[1]; } else { $post_title = $post_default_title; } return $post_title; }