Plugin Directory

Changeset 1652833


Ignore:
Timestamp:
05/08/2017 02:35:56 PM (9 years ago)
Author:
svrooij
Message:

Committing 1.0.7 to trunk

Location:
rest-api-filter-fields/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rest-api-filter-fields/trunk/includes/class-rest-api-filter-fields.php

    r1609682 r1652833  
    5353  }
    5454
    55   // Also enable filtering 'categories', 'comments', 'taxonomies' and 'terms'
     55  // Also enable filtering 'categories', 'comments', 'taxonomies', 'terms' and 'users'
    5656  add_filter('rest_prepare_comment',array($this,'filter_magic'),20,3);
    5757  add_filter('rest_prepare_taxonomy',array($this,'filter_magic'),20,3);
    5858  add_filter('rest_prepare_term',array($this,'filter_magic'),20,3);
    5959  add_filter('rest_prepare_category',array($this,'filter_magic'),20,3);
     60  add_filter('rest_prepare_user',array($this,'filter_magic'),20,3);
    6061}
    6162
  • rest-api-filter-fields/trunk/readme.txt

    r1609682 r1652833  
    44Tags: json, rest, api, rest-api
    55Requires at least: 4.4
    6 Tested up to: 4.7.3
    7 Stable tag: 1.0.6
     6Tested up to: 4.7.4
     7Stable tag: 1.0.7
    88License: MIT
    99License URI: https://raw.githubusercontent.com/svrooij/rest-api-filter-fields/master/LICENSE
     
    9090This mean this plugin is probably activated last, so all custom post types should already be loaded.
    9191But this only works if you made it public for the api.
     92See [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.
    9293
    9394= I found a bug, what should I do? =
    9495
    9596All 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)
     97so please create an issue (or a pull request with a fix) there.
    9798
    9899== 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
    99104
    100105= 1.0.6 =
  • rest-api-filter-fields/trunk/rest-api-filter-fields.php

    r1609682 r1652833  
    1111 * Plugin URI:          https://github.com/svrooij/rest-api-filter-fields
    1212 * Description:         Enables you to filter the fields returned by the api.
    13  * Version:             1.0.6
     13 * Version:             1.0.7
    1414 * Author:              Stephan van Rooij
    1515 * Author URI:          https://svrooij.nl
Note: See TracChangeset for help on using the changeset viewer.