PHPackages                             oberonlai/wp-admin-custom-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. [Admin Panels](/categories/admin)
4. /
5. oberonlai/wp-admin-custom-filter

ActiveLibrary[Admin Panels](/categories/admin)

oberonlai/wp-admin-custom-filter
================================

Adding custom filter for WordPress admin table.

v1.0.0(5y ago)1131MITPHPPHP &gt;=7.2

Since Apr 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/oberonlai/wp-admin-custom-filter)[ Packagist](https://packagist.org/packages/oberonlai/wp-admin-custom-filter)[ Docs](https://github.com/oberonlai/wp-admin-custom-filter)[ RSS](/packages/oberonlai-wp-admin-custom-filter/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

WP Admin Custom Filter v1.0
===========================

[](#wp-admin-custom-filter-v10)

> Simple WordPress custom filter for admin page.

Requirements
------------

[](#requirements)

- PHP &gt;=7.2
- [Composer](https://getcomposer.org/)
- [WordPress](https://wordpress.org) &gt;=5.4

Installation
------------

[](#installation)

#### Install with composer

[](#install-with-composer)

Run the following in your terminal to install with [Composer](https://getcomposer.org/).

```
$ composer require oberonlai/wp-admin-custom-filter

```

WP Admin Custom Filter [PSR-4](https://www.php-fig.org/psr/psr-4/) autoloading and can be used with the Composer's autoloader. Below is a basic example of getting started, though your setup may be different depending on how you are using Composer.

```
require __DIR__ . '/vendor/autoload.php';

use ODS\CustomFilter;

$options = array( ... );

$books = new CustomFilter( $options );
```

See Composer's [basic usage](https://getcomposer.org/doc/01-basic-usage.md#autoloading) guide for details on working with Composer and autoloading.

Basic Usage
-----------

[](#basic-usage)

Below is a basic example of setting up a simple custom filter with a post meta field.

```
// Require the Composer autoloader.
require __DIR__ . '/vendor/autoload.php';

// Import PostTypes.
use ODS\CustomFilter;

$option = array(
    'name'     => 'send_status',     // form select name
    'key'      => 'meta_key',        // post meta field name
    'compare'  => '=',               // the compare rule
    'posttype' => 'cptname',         // which post type support with
    'option'   => array(             // dropdown menu
        'all'       =>  __( 'ALL', ''),
        'option1'   =>  __( 'Option1', ''),
        'option2'   =>  __( 'Option2', ''),
    )
);

new CustomFilter( $option );
```

Then you can see the custom dropdown filter in your admin edit page.

[![](https://camo.githubusercontent.com/58d92cfcc58e1ca8cf98c6b1825d6fb8f805d707d0bd73feb2f32974c35d01f7/68747470733a2f2f636c65616e73686f742d636c6f75642d6672612e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6d656469612f313039332f6232755a576a344c4a333047337868656464573043674137744f4f714f474370617731654f4668672e6a7065673f582d416d7a2d436f6e74656e742d5368613235363d554e5349474e45442d5041594c4f414426582d416d7a2d53656375726974792d546f6b656e3d49516f4a62334a705a326c755832566a454f72253246253246253246253246253246253246253246253246253246253246774561444756314c574e6c626e5279595777744d534a494d45594349514450253242796f7761506b453433746d456b56444455314e6d374d4371734f5438686b4a537231766a3757586b514968414b6a5943324b67546830396777446637387139534b575225324230456879574271666b474c593238523357685a4b746b4243454d5141426f4d4f5445354e5445304e446b784e6a633049677978754d456277514e316225324263774c334971746746625356355349664c534d6f566766324f54643538566f6e6c67437271713275436f576d7a6d63623162495a774c703855357362756e53665848314e495a4a5266676e53697a353069445a624f546b6b72656478695330456d78253246747879584942726925324261614b4b43736a7765526b675458782532424338324e5478556671756c594d4a4b496b47694f584d4e5365475956737633686268644754524d77736353334a482532424b634d4177714b435a526e4d3775473356686563345235486f4a41454d494875666131776676595a6438493246664f58594847705a47646b42304d34367373653235487655645a52674555376962764a7a4345253242625744426a726641583548646a656941484674545961356b73426d79654d36364a7256554d7066334869687742674e53564e452532464a6e7a6d25324235684148573851566e555635305138647642623370466e4537734a6e5831665053253242644b6851727749394b4c386538514f4658373166506c7255476e31446e55414a64757465253246554e7139376e77376a486c6c784d39756a483061425a775a6d5566357172525a49766a67397a4e253242766932356270253242657652515339455476696e74354342717644766c71317a4b4746486f636d347241655836412532426a4179664d762532426b6136377338586a306d643865794d67773356334d44542532466c65514867315249374d686f37757a6c2532423335302532467179374536626f53596b306a4d39253242456b2532424b464d5a67514a37384333433546765473725a4a72464d25334426582d416d7a2d416c676f726974686d3d415753342d484d41432d53484132353626582d416d7a2d43726564656e7469616c3d41534941354d463256564d4e4d33454543495155253246323032313034303725324665752d63656e7472616c2d312532467333253246617773345f7265717565737426582d416d7a2d446174653d3230323130343037543130353532375a26582d416d7a2d5369676e6564486561646572733d686f737426582d416d7a2d457870697265733d33303026582d416d7a2d5369676e61747572653d61623865613866363063303864343862636262343162636338383633626666376462656139383264396238306562353066356266636161663039316634316363)](https://camo.githubusercontent.com/58d92cfcc58e1ca8cf98c6b1825d6fb8f805d707d0bd73feb2f32974c35d01f7/68747470733a2f2f636c65616e73686f742d636c6f75642d6672612e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6d656469612f313039332f6232755a576a344c4a333047337868656464573043674137744f4f714f474370617731654f4668672e6a7065673f582d416d7a2d436f6e74656e742d5368613235363d554e5349474e45442d5041594c4f414426582d416d7a2d53656375726974792d546f6b656e3d49516f4a62334a705a326c755832566a454f72253246253246253246253246253246253246253246253246253246253246774561444756314c574e6c626e5279595777744d534a494d45594349514450253242796f7761506b453433746d456b56444455314e6d374d4371734f5438686b4a537231766a3757586b514968414b6a5943324b67546830396777446637387139534b575225324230456879574271666b474c593238523357685a4b746b4243454d5141426f4d4f5445354e5445304e446b784e6a633049677978754d456277514e316225324263774c334971746746625356355349664c534d6f566766324f54643538566f6e6c67437271713275436f576d7a6d63623162495a774c703855357362756e53665848314e495a4a5266676e53697a353069445a624f546b6b72656478695330456d78253246747879584942726925324261614b4b43736a7765526b675458782532424338324e5478556671756c594d4a4b496b47694f584d4e5365475956737633686268644754524d77736353334a482532424b634d4177714b435a526e4d3775473356686563345235486f4a41454d494875666131776676595a6438493246664f58594847705a47646b42304d34367373653235487655645a52674555376962764a7a4345253242625744426a726641583548646a656941484674545961356b73426d79654d36364a7256554d7066334869687742674e53564e452532464a6e7a6d25324235684148573851566e555635305138647642623370466e4537734a6e5831665053253242644b6851727749394b4c386538514f4658373166506c7255476e31446e55414a64757465253246554e7139376e77376a486c6c784d39756a483061425a775a6d5566357172525a49766a67397a4e253242766932356270253242657652515339455476696e74354342717644766c71317a4b4746486f636d347241655836412532426a4179664d762532426b6136377338586a306d643865794d67773356334d44542532466c65514867315249374d686f37757a6c2532423335302532467179374536626f53596b306a4d39253242456b2532424b464d5a67514a37384333433546765473725a4a72464d25334426582d416d7a2d416c676f726974686d3d415753342d484d41432d53484132353626582d416d7a2d43726564656e7469616c3d41534941354d463256564d4e4d33454543495155253246323032313034303725324665752d63656e7472616c2d312532467333253246617773345f7265717565737426582d416d7a2d446174653d3230323130343037543130353532375a26582d416d7a2d5369676e6564486561646572733d686f737426582d416d7a2d457870697265733d33303026582d416d7a2d5369676e61747572653d61623865613866363063303864343862636262343162636338383633626666376462656139383264396238306562353066356266636161663039316634316363)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

1858d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1587136?v=4)[Oberon Lai](/maintainers/oberonlai)[@oberonlai](https://github.com/oberonlai)

---

Top Contributors

[![oberonlai](https://avatars.githubusercontent.com/u/1587136?v=4)](https://github.com/oberonlai "oberonlai (2 commits)")

### Embed Badge

![Health badge](/badges/oberonlai-wp-admin-custom-filter/health.svg)

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

###  Alternatives

[jeroennoten/laravel-adminlte

Easy AdminLTE integration with Laravel

4.0k4.8M43](/packages/jeroennoten-laravel-adminlte)[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[dwij/laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like CRUD Generation, Module Manager, Media, Menus, Backups and much more

1.6k68.7k](/packages/dwij-laraadmin)[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1764.8M125](/packages/filament-spatie-laravel-media-library-plugin)[bezhansalleh/filament-exceptions

A Simple &amp; Beautiful Pluggable Exception Viewer for FilamentPHP's Admin Panel

193195.9k13](/packages/bezhansalleh-filament-exceptions)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1220.8M36](/packages/filament-infolists)

PHPackages © 2026

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