chuckreynolds / Admin-Slug-Column

WordPress Plugin that puts the slug of a post or page into the admin columns
https://wordpress.org/plugins/admin-slug-column/
1 stars 2 forks source link

make array and work with cpt's #4

Closed chuckreynolds closed 2 years ago

chuckreynolds commented 11 years ago

Example: add_col(post_type,meta_data);

Have the ability to add cols to any post type

chuckreynolds commented 11 years ago

playing around notes:

function init() {
    $post_type = get_post_type();
    add_filter( "manage_{$post_type}_posts_columns",        array( $this, 'columns' ) );
    add_action( "manage_{$post_type}_posts_custom_column",  array( $this, 'column_data' ), 10, 2 );         
}