Skip to content

A class useful to add Columns, Filters and Views to a WordPress Post Type or Taxonomy List Table.

License

Notifications You must be signed in to change notification settings

edirpedro/wp-custom-list-table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom List Table

This class is useful to add Columns, Filters and Views to a Post Type or Taxonomy List Table.

Usage example:

add_action( 'admin_init', function() {
	
	Custom_List_Table::add_column( [
		'object' => 'post',
		'name' => 'custom',
		'label' => 'Custom',
		'before' => 'date',
		'callback' => function( $post_id ) {
			echo 'Hello world!';	
		}
	] );
	
} );

More examples you find reading the samples.php file.

About

A class useful to add Columns, Filters and Views to a WordPress Post Type or Taxonomy List Table.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages