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. [API Development](/categories/api)
4. /
5. jussikinnula/wp-rest-filter

AbandonedArchivedWordpress-plugin[API Development](/categories/api)

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 today

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 41% 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

3441d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/65624?v=4)[spot](/maintainers/spot)[@spot](https://github.com/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)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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