__('Due Date'), _('_ad_assignment') => __('Assignment'), ); foreach ($custom_fields_to_add as $field => $title) { $posts_columns["$field"] = $title; } return $posts_columns; } /** Remove columns from the manage posts listing. Wordpress calls this and passes the list of columns. */ function remove_manage_post_columns($posts_columns){ unset($posts_columns['date']); unset($posts_columns['tags']); return $posts_columns; } /** Wordpress doens't know how to resolve the column name to a post attribute so this function is called with the column name and the id of the post. */ function handle_ef_due_date_column($column_name, $id){ if($column_name == __('_ef_duedate')){ // Get the due date, format it and echo. $due_date = get_post_meta($id, '_ef_duedate', true); if($due_date){ echo strftime("%b %d, %Y", $due_date); } else { echo 'None'; } } } function handle_ad_assignment_column($column_name, $id){ if($column_name == __('_ad_assignment')){ echo 'Placeholder'; /* Print out Assignment Metadata - Editor - Authors */ } } } $manage_posts = new assignment_desk_manage_posts(); } // end if(!class_exists) ?>