2017 © Pedro Peláez
 

library columns

Create post type columns with ease.

image

devdk/columns

Create post type columns with ease.

  • Monday, October 14, 2013
  • by tkjaergaard
  • Repository
  • 1 Watchers
  • 1 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

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., (*1)

installation

Columns is installable through Composer., (*2)

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");
});

The Versions

14/10 2013

dev-master

9999999-dev

Create post type columns with ease.

  Sources   Download

MIT

by t_kjaergaard

14/10 2013

1.0.3

1.0.3.0

Create post type columns with ease.

  Sources   Download

MIT

by t_kjaergaard

27/06 2013

1.0.2

1.0.2.0

Create post type columns with ease.

  Sources   Download

MIT

by t_kjaergaard

22/05 2013

1.0.1

1.0.1.0

Create post type columns with ease.

  Sources   Download

MIT

by t_kjaergaard

21/05 2013

1.0.0

1.0.0.0

Create post type columns with ease.

  Sources   Download

MIT

by t_kjaergaard