Used By
| Used By | Description |
|---|---|
| wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_newPost() | Creates new post. |
| wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_editPost() | Edit a post. |
Retrieve 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.
(string) (Required) XMLRPC XML Request content
(string) Post title
File: wp-includes/functions.php
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;
} | Version | Description |
|---|---|
| 0.71 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/xmlrpc_getposttitle