PHPackages                             jussikinnula/wp-rest-filter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. jussikinnula/wp-rest-filter

AbandonedArchivedWordpress-plugin

jussikinnula/wp-rest-filter
===========================

Restores the 'filter' param to post endpoints

0.1(9y ago)0661PHP

Since Jan 27Pushed 9y agoCompare

[ Source](https://github.com/jussikinnula/rest-filter)[ Packagist](https://packagist.org/packages/jussikinnula/wp-rest-filter)[ Docs](https://github.com/jussikinnula/rest-filter)[ RSS](/packages/jussikinnula-wp-rest-filter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

WP REST API - Filter parameter for posts endpoints
==================================================

[](#wp-rest-api---filter-parameter-for-posts-endpoints)

In WordPress 4.7 the `filter` argument for any post endpoint was removed, The `filter` argument allows the posts to be filtered using `WP_Query` public query vars. This plugin restores the `filter` parameter for sites that were previously using it.

Usage
-----

[](#usage)

Use the `filter` parameter on any post endpoint such as `/wp/v2/posts` or `/wp/v2/pages` as an array of `WP_Query`argument like so:

```
fetch( 'https://example.com/wp-json/wp/v2/posts?filter[name]=the-slug');
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3389d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/496f223c813994bb71de52c82c3db39f288cfe3d553e3bf1d42ec0c96870dc0f?d=identicon)[spot](/maintainers/spot)

---

Top Contributors

[![joehoyle](https://avatars.githubusercontent.com/u/161683?v=4)](https://github.com/joehoyle "joehoyle (3 commits)")[![rachelbaker](https://avatars.githubusercontent.com/u/979807?v=4)](https://github.com/rachelbaker "rachelbaker (1 commits)")

### Embed Badge

![Health badge](/badges/jussikinnula-wp-rest-filter/health.svg)

```
[![Health](https://phpackages.com/badges/jussikinnula-wp-rest-filter/health.svg)](https://phpackages.com/packages/jussikinnula-wp-rest-filter)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
