wpbp/cpt_columns

Improve the CPT list in the backend for your CPTs
9,626 20
Install
composer require wpbp/cpt_columns
Latest Version:1.0.3
License:GPL-3.0
Last Updated:Aug 21, 2023
Links: GitHub  ·  Packagist
Maintainer: Mte90

CPT Columns

License Downloads

Improve the CPT list in the backend for your CPTs

Install

composer require wpbp/cpt_columns:dev-master

composer-php52 supported.

Example

$post_columns = new CPT_columns( 'demo' );
$post_columns->add_column( 'cmb2_field', array(
    'label' => __( 'CMB2 Field' ),
    'type' => 'post_meta', //text, thumbnail, post_meta, author, custom_tax, custom_value
    'meta_key' => '_demo_meta_text',
    'orderby' => 'meta_value', // For WP-Query
    'sortable' => true,
    'prefix' => '<b>',
    'suffix' => '</b>',
    'def' => 'Not defined', // Default value in case post meta not found
    'order' => '-1' // This is the last column
	)
);

Related Packages

josh-taylor/sage-svg

WordPress package to enable a blade directive to use SVG images inline with Sage...

46,505 18
lunar-build/sage-lib

Library files for Sage Starter Theme, forked by Lunar Build to support PHP8.1

25,461 0
snapwp/snap-core

Core files for Snap

6,115 4
jjgrainger/posttypes

Simple WordPress custom post types.

654,215 373
paulbunyannet/wordpress-artisan

Artisan commands to interact with Wordpress

21,496 0

Version History

Version Released License
1.0.3 GPL-3.0
1.0.2 GPL-3.0
1.0.1 GPL-3.0
1.0.0 GPL-3.0