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

ActiveWordpress-dropin

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 1w 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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

1953d 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.5k441.8k2](/packages/roots-bedrock)[airesvsg/acf-to-rest-api

Exposes Advanced Custom Fields Endpoints in the WordPress REST API

1.4k75.0k](/packages/airesvsg-acf-to-rest-api)[wecodemore/wpstarter

Composer plugin to easily build WordPress websites entirely managed via Composer.

253195.2k6](/packages/wecodemore-wpstarter)[devgeniem/wp-sanitize-accented-uploads

Replaces accents from future uploads and has wp-cli command which you can use to sanitize current content.

2798.4k5](/packages/devgeniem-wp-sanitize-accented-uploads)[wp-pay-extensions/gravityforms

Gravity Forms driver for the WordPress payment processing library.

1133.3k2](/packages/wp-pay-extensions-gravityforms)[nekojira/wp-api-menus

Extends WordPress WP API with menu routes.

1401.5k](/packages/nekojira-wp-api-menus)

PHPackages © 2026

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