/** * wp.suggestCategories * * @see http://codex.wordpress.org/XML-RPC_wp#wp.suggestCategories * * @param xmlrpcmsg XML-RPC Message * 0 blogid (int): Unique identifier of the blog. * 1 username (string): User login. * 2 password (string): Password for said username. * 3 search (string): search string * 4 max_results (int) */ function wp_suggestcategories($m) { // Note: we display all cats if search string is empty $params['search'] = ''; if (isset($m->params[3])) { $search = $m->getParam(3); $params['search'] = trim($search->scalarval()); } if (isset($m->params[4])) { $limit = $m->getParam(4); $params['limit'] = abs($limit->scalarval()); } return _wp_mw_getcategories($m, $params); }
/** * metaWeblog.getCategories * * @see http://www.xmlrpc.com/metaWeblogApi#metawebloggetcategories * * @param xmlrpcmsg XML-RPC Message * 0 blogid (string): Unique identifier of the blog the post will be added to. * Currently ignored in b2evo, in favor of the category. * 1 username (string): Login for a Blogger user who has permission to edit the given * post (either the user who originally created it or an admin of the blog). * 2 password (string): Password for said username. */ function mw_getcategories($m) { return _wp_mw_getcategories($m); }