wpbp/cpt_columns
最新稳定版本:1.0.3
Composer 安装命令:
composer require wpbp/cpt_columns
包简介
Improve the CPT list in the backend for your CPTs
README 文档
README
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 ) );
统计信息
- 总下载量: 7.8k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 21
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2016-07-01