I want to change the URL of the edit post link so that it directs you to my own custom edit page. I’ve been looking for a filter or function but all I can find is the edit_post_link()
function and the get_edit_post_link()
function. From what I can see from documentation, edit_post_link
only changes the links text, not the URL. And get_edit_post_link
I believe gets the URL for you.
Leave a Reply
You must be logged in to post a comment.
You would need to add a filter to
get_edit_post_link
. This is untested, but something like:Working version:
my wordpress dev skills are a little rusted but you should probably use wordpress hooks to hook
edit_post
, and write your plugin to rewrite the return value ordo_action
to just go yo your own custion edit page