我一直遵循以下指南:step by step guide to wp list table 然而,我不知道应该在哪里定义我的操作:在代码中复制。我想添加一个链接,简单地复制相应的行,有什么想法吗?
$actions = array(
\'edit\' => sprintf(\'<a href="?page=cruises_form&id=%s">%s</a>\', $item[\'id\'], __(\'Edit\', \'cruise_list_manager\')),
\'delete\' => sprintf(\'<a href="?page=%s&action=delete&id=%s">%s</a>\', $_REQUEST[\'page\'], $item[\'id\'], __(\'Delete\', \'cruise_list_manager\')),
\'duplicate\' => sprintf(\'<a href="?page=%s&action=duplicate&id=%s">%s</a>\', $_REQUEST[\'page\'], $item[\'id\'], __(\'Duplicate\', \'cruise_list_manager\')),
);
return sprintf(\'%s %s\',
$item[\'name\'],
$this->row_actions($actions)
);
}
非常感谢你。