$fields =
apply_filters( 'xmlrpc_default_taxonomy_fields', array
( 'labels', 'cap', 'object_type'
), 'wp.getTaxonomies'
);
} $user =
$this->
login( $username,
$password );
if ( !
$user ) { return $this->error;
} /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
do_action( 'xmlrpc_call', 'wp.getTaxonomies',
$args,
$this );
$taxonomies =
get_taxonomies( $filter, 'objects'
);
// Holds all the taxonomy data.
$struct = array
();
foreach ( $taxonomies as $taxonomy ) { // Capability check for post types.
if ( !
current_user_can( $taxonomy->cap->assign_terms
) ) { continue;
} $struct[] =
$this->
_prepare_taxonomy( $taxonomy,
$fields );
}