Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




xmlrpc_getposttitle [ WordPress Function ]

xmlrpc_getposttitle ( $content )
Parameters:
  • (string) $content XMLRPC XML Request content
Returns:
  • (string) Post title
Defined at:



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.

Source


<?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;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics