Changeset 1652833
- Timestamp:
- 05/08/2017 02:35:56 PM (9 years ago)
- Location:
- rest-api-filter-fields/trunk
- Files:
-
- 3 edited
-
includes/class-rest-api-filter-fields.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
rest-api-filter-fields.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
rest-api-filter-fields/trunk/includes/class-rest-api-filter-fields.php
r1609682 r1652833 53 53 } 54 54 55 // Also enable filtering 'categories', 'comments', 'taxonomies' and 'terms'55 // Also enable filtering 'categories', 'comments', 'taxonomies', 'terms' and 'users' 56 56 add_filter('rest_prepare_comment',array($this,'filter_magic'),20,3); 57 57 add_filter('rest_prepare_taxonomy',array($this,'filter_magic'),20,3); 58 58 add_filter('rest_prepare_term',array($this,'filter_magic'),20,3); 59 59 add_filter('rest_prepare_category',array($this,'filter_magic'),20,3); 60 add_filter('rest_prepare_user',array($this,'filter_magic'),20,3); 60 61 } 61 62 -
rest-api-filter-fields/trunk/readme.txt
r1609682 r1652833 4 4 Tags: json, rest, api, rest-api 5 5 Requires at least: 4.4 6 Tested up to: 4.7. 37 Stable tag: 1.0. 66 Tested up to: 4.7.4 7 Stable tag: 1.0.7 8 8 License: MIT 9 9 License URI: https://raw.githubusercontent.com/svrooij/rest-api-filter-fields/master/LICENSE … … 90 90 This mean this plugin is probably activated last, so all custom post types should already be loaded. 91 91 But this only works if you made it public for the api. 92 See [Adding REST API Support for Custom Content Types](https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-rest-api-support-for-custom-content-types/) for more information. 92 93 93 94 = I found a bug, what should I do? = 94 95 95 96 All the bugs/issues are maintained on [github.com/svrooij/rest-api-filter-fields](https://github.com/svrooij/rest-api-filter-fields/issues) 96 so please create an issue (or a pull request with a fix there)97 so please create an issue (or a pull request with a fix) there. 97 98 98 99 == Changelog == 100 101 = 1.0.7 = 102 * Filter fields enabled on users [Issue #9](https://github.com/svrooij/rest-api-filter-fields/issues/9) 103 * Bumped wordpress version 99 104 100 105 = 1.0.6 = -
rest-api-filter-fields/trunk/rest-api-filter-fields.php
r1609682 r1652833 11 11 * Plugin URI: https://github.com/svrooij/rest-api-filter-fields 12 12 * Description: Enables you to filter the fields returned by the api. 13 * Version: 1.0. 613 * Version: 1.0.7 14 14 * Author: Stephan van Rooij 15 15 * Author URI: https://svrooij.nl
Note: See TracChangeset
for help on using the changeset viewer.