I’m trying to find out what action hook/filter I can use to insert content on the admin “edit.php” page (i want to place a few links above the ‘posts’ table)? I’ve found “edit_form_after_title” and “edit_form_after_editor” (these do exactly what I want to do, but they are for posts.php, not edit.php).
Leave a Reply
You must be logged in to post a comment.
With the help of this answer: How do you create a custom edit.php / edit pages page
I came up with this:
And it looks like this:
If you just wanted to add to the post title link you could do something like this
however, it doesn’t sound like you want to add text to the title link.
To add html after the title and before the actions links, you could do like this
There is also
page_row_actions
for the page edit screen (post_row_actions
is only for posts)As far as adding stuff before the title, I don’t see a hook/filter to do that. See
wp-admin/class-wp-posts-list-table.php
line 463function single_row
if you want to look for yourself.