PHPackages                             soderlind/class-wp-list-table-custom-column-toggle - 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. soderlind/class-wp-list-table-custom-column-toggle

ActiveWordpress-dropin[Admin Panels](/categories/admin)

soderlind/class-wp-list-table-custom-column-toggle
==================================================

Add a toggle column to WP\_Table or its siblings.

2.0.0(5y ago)2547GPL-2.0-or-laterPHPPHP &gt;=5.6

Since Jan 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/soderlind/class-wp-list-table-custom-column-toggle)[ Packagist](https://packagist.org/packages/soderlind/class-wp-list-table-custom-column-toggle)[ Docs](https://github.com/soderlind/class-wp-table-custom-column-toggle)[ RSS](/packages/soderlind-class-wp-list-table-custom-column-toggle/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (5)Dependencies (4)Versions (8)Used By (0)

class WP\_List\_Table\_Custom\_Toggle\_Column
=============================================

[](#class-wp_list_table_custom_toggle_column)

Add a toggle column to WP\_List\_Table or its siblings.

Use
---

[](#use)

`$toggled = \WP_List_Table_Custom_Column_Toggle::create( $propterties );`

Where default properties are:

```
[
    'meta_key'        => 'column_meta_key',  // "toggle" for a single site is saved using post meta
    'column_id'       => 'column_id',
    'column_name'     => 'Column Toggle',
    'column_hooks'    => [
        'header'  => 'manage_page_posts_columns',
        'content' => 'manage_page_posts_custom_column',
    ],
    'use_siteoptions' => false,
]
```

Get toggled IDs using `$toggled->get_values();`

Example, note use of column hooks:

```
$subsite_maintenance_sites = \WP_List_Table_Custom_Column_Toggle::create(
	[
		'column_id'       => 'subsite_maintenance',
		'column_name'     => '',
		'column_hooks'    => [
			'header'  => 'wpmu_blogs_columns',
			'content' => 'manage_sites_custom_column',
		],
		'use_siteoptions' => true,
	]
);
$subsite_maintenance = \Subsite_Maintenance::create( $subsite_maintenance_sites );
```

Working example at:

Copyright and License
---------------------

[](#copyright-and-license)

WP\_List\_Table Custom Toggle Column is copyright 2021 Per Soderlind

WP\_List\_Table Custom Toggle Column is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

WP\_List\_Table Custom Toggle Column is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with the Extension. If not, see .

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~0 days

Total

7

Last Release

2044d ago

Major Versions

1.0.6 → 2.0.02021-01-12

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1649452?v=4)[Per Søderlind](/maintainers/soderlind)[@soderlind](https://github.com/soderlind)

---

Top Contributors

[![soderlind](https://avatars.githubusercontent.com/u/1649452?v=4)](https://github.com/soderlind "soderlind (16 commits)")

---

Tags

wordpresswptabletoggle

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/soderlind-class-wp-list-table-custom-column-toggle/health.svg)

```
[![Health](https://phpackages.com/badges/soderlind-class-wp-list-table-custom-column-toggle/health.svg)](https://phpackages.com/packages/soderlind-class-wp-list-table-custom-column-toggle)
```

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.6k471.6k2](/packages/roots-bedrock)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.6k10](/packages/helsingborg-stad-municipio)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7591.4M4](/packages/wp-media-wp-rocket)[alleyinteractive/wordpress-fieldmanager

A library to build forms and admin screens for WordPress

564830.9k3](/packages/alleyinteractive-wordpress-fieldmanager)[wp-pay-extensions/gravityforms

Gravity Forms driver for the WordPress payment processing library.

1134.5k5](/packages/wp-pay-extensions-gravityforms)[pressbooks/pressbooks-book

This theme is named after Canadian media theorist Marshall McLuhan, who coined the phrase “the medium is the message.” It is designed for academic writing and is also suitable for fiction. Headings are set in Cormorant Garamond, and body type is set in Lora.

226.7k](/packages/pressbooks-pressbooks-book)

PHPackages © 2026

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