1. Go to this page and download the library: Download themeplate/column library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
themeplate / column example snippets
use ThemePlate\Column\PostTypeColumn;
use ThemePlate\Column\TaxonomyColumn;
use ThemePlate\Column\UsersColumn;
function pretty_print( $object_id ) {
echo '♥ <b>' . $object_id . '</b> —›';
};
( new PostTypeColumn( 'Post ID' )->callback( 'pretty_print' ) )->init();
( new TaxonomyColumn( 'Term ID' )->callback( 'pretty_print' ) )->init();
( new UsersColumn( 'User ID' )->callback( 'pretty_print' ) )->init();
// Before init
$column->position( 0 )->args( array() )->class( '' );
( new PostTypeColumn( 'Model', $my_callback ) )->location( 'custom_post_type' )->init();
( new TaxonomyColumn( 'Value', $my_callback ) )->location( 'tax_1' )->location( 'tax_2' )->init();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.