aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
Diffstat (limited to 'ws.php')
-rw-r--r--ws.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/ws.php b/ws.php
index 6aa7b3f64..5fdccff3a 100644
--- a/ws.php
+++ b/ws.php
@@ -201,6 +201,16 @@ function ws_addDefaultMethods( $arr )
array(),
'administration method only'
);
+
+ $service->addMethod(
+ 'pwg.categories.add',
+ 'ws_categories_add',
+ array(
+ 'name' => array(),
+ 'parent' => array('default' => null),
+ ),
+ 'administration method only'
+ );
}
add_event_handler('ws_add_methods', 'ws_addDefaultMethods');