wpbp/cpt_columns
CPT Columns
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
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 |