2

I have removed "Post Title" in admin column, and created a custom column.

Is there any way to the display "Edit | Quick Edit | Trash | View" link?

0

1 Answer 1

3

Those links are hard-coded to display in the "title" column as part of class-wp-posts-list-table.php. Look at the single_row() method in that file, specifically the case 'title' to see how those links are constructed. You can probably re-use the same code in your plugin or theme as long as you comply with the GPL license WordPress uses.

3
  • Do it work at Custom post? In other words, can i use this method in custom post? Mar 2, 2015 at 5:56
  • You'll have to past the code in where you're rendering your custom column, and you'll definitely have to tweak it to use your custom post type. But unfortunately this is one of those times when the WordPress admin code is old, complicated, and not built to be re-used. :(
    – Dave Ross
    Mar 2, 2015 at 17:04
  • tanks my friend :) Mar 3, 2015 at 5:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.