1 | <?php |
---|
2 | |
---|
3 | /* |
---|
4 | Plugin Name: BPDEV XMLRPC |
---|
5 | Plugin URI: http://bp-dev.org/plugins/bpdev-xmlrpc |
---|
6 | Description: DON'T ACTIVATE! STILL TESTING! XMLRPC support for BuddyPress |
---|
7 | Author: Nicola Greco |
---|
8 | Version: 0.3 |
---|
9 | Author URI: http://nicolagreco.com |
---|
10 | Site Wide Only: true |
---|
11 | */ |
---|
12 | |
---|
13 | if ( function_exists( 'bpdev_init' ) ) |
---|
14 | require_once ( WP_PLUGIN_DIR . '/bpdev-core/bpdev-core.php' ); |
---|
15 | require_once( 'bpdev-xmlrpc-classes.php' ); |
---|
16 | |
---|
17 | add_action( 'bpdev_init', 'bpdev_xmlrpc_actions', 2 ); |
---|
18 | |
---|
19 | function bpdev_xmlrpc_globals () { |
---|
20 | |
---|
21 | BPDEV_Admin::register_component( |
---|
22 | 'bpdev_xmlrpc', |
---|
23 | 'BPDEV XMLRPC', |
---|
24 | 'XMLRPC support for BuddyPress', |
---|
25 | 'http://bp-dev.org/plugins/bpdev-xmlrpc' |
---|
26 | ); |
---|
27 | |
---|
28 | } |
---|
29 | |
---|
30 | function bpdev_xmlrpc_actions () { |
---|
31 | |
---|
32 | add_action( 'bpdev_globals', 'bpdev_xmlrpc_globals', 2 ); |
---|
33 | |
---|
34 | add_action( 'bpdev_xmlrpc_methods', array( 'BPDEV_XMLRPC_Groups', 'methods' ) ); |
---|
35 | |
---|
36 | add_filter( 'xmlrpc_methods', array( 'BPDEV_XMLRPC', 'methods' ) ); |
---|
37 | add_action( 'bpdev_xmlrpc_method', array( 'BPDEV_XMLRPC', 'add_method' ), 1, 2 ); |
---|
38 | |
---|
39 | } |
---|
40 | |
---|
41 | ?> |
---|