Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

#347: Added filters to taxonomy based on get_terms args. #401

Merged
merged 2 commits into from
Oct 26, 2014

Conversation

mauteri
Copy link
Contributor

@mauteri mauteri commented Aug 1, 2014

Fixes #347.

@@ -215,7 +215,34 @@ public function get_taxonomy_terms( $taxonomy ) {
$args = array(
'hide_empty' => false,
);


// Allow args in get_terms function, a common sense list...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A common-sense list, or a full list of what's available to get_terms? Since we can't pull this from a WP internal list like we do with filter parameters, I feel it's good to be specific about whether this is a full or partial list, and (if partial) what the differences are.

@mauteri
Copy link
Contributor Author

mauteri commented Aug 3, 2014

Okay, committed update per @kadamwhite's suggestions. Thx!

@kadamwhite
Copy link
Contributor

This appears to work as advertised, @rmccue. I can provide get_terms filters e.g. filter[number]=10 and get back a list of 10 terms; I can also add a filter on json_tax_query_var-$var (e.g. json_tax_query_var-number) to manipulate the provided filter values.

@rmccue rmccue added this to the 1.2 milestone Oct 26, 2014
rmccue added a commit that referenced this pull request Oct 26, 2014
#347: Added filters to taxonomy based on get_terms args.
@rmccue rmccue merged commit 83dbbad into WP-API:master Oct 26, 2014
@rmccue
Copy link
Member

rmccue commented Oct 26, 2014

Sorry for the super long review time on this one, just got time to get back to it with @kadamwhite's help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants