[wp-hackers] How to exntend wp_xmlrpc_server in plugin

Otto otto at ottodestruct.com
Sat Aug 4 17:46:30 UTC 2012

On Sat, Aug 4, 2012 at 12:19 PM, Martin Lazarov <martin at lazarov.bg> wrote:
> I was looking for OOP PHP example rather than functional examples. In
> the docs there is no OOP example.
> Thanks to Otto now it's working as expected/wanted ("my_xmlrpc_class
> extends  wp_xmlrpc_server { ..." - the OOP way )

Extending a class should generally be a last resort, if you can't get
the functionality you want in another manner. The problem with
extending the class is that only one piece of code can do it, whereas
multiple pieces of code can add actions/filters and such.


More information about the wp-hackers mailing list