Download the PHP package devdk/columns without Composer
On this page you can find all versions of the php package devdk/columns. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download devdk/columns
More information about devdk/columns
Files in devdk/columns
Download devdk/columns
More information about devdk/columns
Files in devdk/columns
Please rate this library. Is it a good library?
Informations about the package columns
Columns
To create custom coluns in Wordpress is quite a pain. We build a simple API around the wordpress functions to easily create, delete, rename and make columns sortable.
installation
Columns is installable through Composer.
require {
"devdk/columns": "dev-master"
}
Simple usage
use Devdk\Columns;
Columns::make($post_type, function($col)
{
$col->column("Column Title")->content( function ($post, $meta) {
return $meta["key"][0];
});
});
Advanced usage
use Devdk\Columns;
Columns::make($post_type, function ($col) {
$col->column("Column Title")->content(function($post, $meta){
return $meta["key"][0];
})->before("date")->sortable("meta_key");
});
use Devdk\Columns;
Columns::make($post_type, function ($col) {
$col->column("Column Title")->content(function($post, $meta){
return $meta["key"][0];
})->after("title")->sortable("meta_key");
});
All versions of columns with dependencies
PHP Build Version
Package Version
No informations.
The package devdk/columns contains the following files
Loading the files please wait ....