[wp-trac] [WordPress Trac] #20704: New hook: login_init_xmlrpc

WordPress Trac wp-trac at lists.automattic.com
Fri May 18 20:08:33 UTC 2012


#20704: New hook: login_init_xmlrpc
-------------------------+-----------------------------
 Reporter:  aercolino    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  XML-RPC      |    Version:  3.3.2
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 I've been writing an enhancement for my LoginDongle plugin, where I will
 use a query string param to allow an XML-RPC user to log in.

 To do that, I had to subclass the
 [http://core.trac.wordpress.org/browser/tags/3.3.2/wp-includes/class-wp-
 xmlrpc-server.php wp_xmlrpc_server] class with a method like the following
 and add a filter for
 [http://core.trac.wordpress.org/browser/tags/3.3.2/xmlrpc.php#L105
 wp_xmlrpc_server_class].
 {{{
 public function login($username, $password)
 {
         do_action('login_init_xmlrpc', $username);
         return parent::login($username, $password);
 }
 }}}

 It would be nice to have that implemented in WP.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20704>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list