Skip to:
Content

BuddyPress.org

Ticket #1355: bpdev-xmlrpc.php

File bpdev-xmlrpc.php, 989 bytes (added by jamesyeah, 15 years ago)

PHP for XML-RPC

Line 
1<?php
2
3/*
4Plugin Name: BPDEV XMLRPC
5Plugin URI: http://bp-dev.org/plugins/bpdev-xmlrpc
6Description: DON'T ACTIVATE! STILL TESTING! XMLRPC support for BuddyPress
7Author: Nicola Greco
8Version: 0.3
9Author URI: http://nicolagreco.com
10Site Wide Only: true
11*/
12
13if ( function_exists( 'bpdev_init' ) )
14        require_once ( WP_PLUGIN_DIR . '/bpdev-core/bpdev-core.php' );
15require_once( 'bpdev-xmlrpc-classes.php' ); 
16
17add_action( 'bpdev_init', 'bpdev_xmlrpc_actions', 2 );
18
19function 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
30function 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?>