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
yoast/duplicate-post
The go-to tool for cloning posts and pages, including the powerful Rewrite & Rep...
256,432
0
webwizo/laravel-shortcodes
Wordpress like shortcodes for Laravel 5, 6, 7, 8, 9, 10, 11 and 12
714,458
217
composer/installers
A multi-framework Composer library installer
145,886,248
1,440
agl
annotatecms
attogram
bitrix
cakephp
chef
cockpit
codeigniter
concrete5
concretecms
croogo
dokuwiki
dolibarr
drupal
elgg
eliasis
expressionengine
ez platform
fuelphp
grav
hurad
imagecms
installer
itop
kanboard
known
kohana
lan management system
laravel
lavalite
lithium
magento
majima
mako
mantisbt
matomo
mautic
maya
mediawiki
miaoxing
modulework
modx
modx evo
moodle
osclass
oxid
pantheon
phpbb
piwik
plentymarkets
porto
ppi
processwire
puppet
pxcms
radphp
reindex
roundcube
shopware
silverstripe
smf
starbug
sydes
sylius
tastyigniter
thelia
whmcs
wolfcms
wordpress
yawik
zend
zikula