/** * Render the 'post_title' column. * * @param Batch $item * @return string HTML to be rendered inside column. */ public function column_post_title(Batch $item) { $edit_link = admin_url('admin.php?page=sme-edit-batch&id=' . $item->get_id()); $delete_link = admin_url('admin.php?page=sme-delete-batch&id=' . $item->get_id()); // Build row actions $actions = array('edit' => '<a href="' . $edit_link . '">Edit</a>', 'delete' => '<a href="' . $delete_link . '">Delete</a>'); // Return the title contents. return sprintf('<strong><a class="row-title" href="%s">%s</a></strong>%s', $edit_link, $item->get_title(), $this->row_actions($actions)); }
/** * Render the 'post_title' column. * * @param Batch $item * @return string HTML to be rendered inside column. */ public function column_post_title(Batch $item) { return sprintf('<strong>%s</strong>', $item->get_title()); }