Viewing 1 replies (of 1 total)
  • Did you get this figured out? If not I’d be glad to help you troubleshoot it.

    The column_title function has the actions setup to do it but you’ll need to change the code a little. Are you using a Custom Post Type? Here is what I used to create an edit link. I removed the delete function as it wasn’t necessary for my project, although its a very similar modification.

    function column_title($item){
    
          //Build row actions
          $actions = array(
              'edit'      => sprintf('<a href="/wp-admin/post.php?action=%s&post=%s">Edit</a>','edit',$item['ID']),
          );
    
          //Return the title contents
          return sprintf('%1$s <span style="color:silver">(event-id:%2$s)</span>%3$s',
              /*$1%s*/ $item['post_title'],
              /*$2%s*/ $item['ID'],
              /*$3%s*/ $this->row_actions($actions)
          );
      }

    Let me know if that isn’t clear or if you have any other questions.

    Kiko

Viewing 1 replies (of 1 total)

The topic ‘The "edit" link doesn't work. How do I implement that?’ is closed to new replies.