Switch language

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




_xmlrpc_wp_die_handler [ WordPress Function ]

_xmlrpc_wp_die_handler ( $message, $title = '', $args = array() )
Access:
  • private
Parameters:
  • (string) $message Error message.
  • (string) $title Error title.
  • (string|array) $args Optional arguments to control behavior.
Defined at:



Kill WordPress execution and display XML message with error message.

This is the handler for wp_die when processing XMLRPC requests.

Source


<?php
function _xmlrpc_wp_die_handler$message$title ''$args = array() ) {
    global 
$wp_xmlrpc_server;
    
$defaults = array( 'response' => 500 );

    
$r wp_parse_args($args$defaults);

    if ( 
$wp_xmlrpc_server ) {
        
$error = new IXR_Error$r['response'] , $message);
        
$wp_xmlrpc_server->output$error->getXml() );
    }
    die();
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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