Support » Requests and Feedback » edit_post_link feature request
7 years, 8 months ago
i would really like to see the ability to pass a postID paramater into the ‘edit_post_link();’ function, and to use it outside the loop.
basically it would allow for better CMS functionality.
thanks WordPress team!!
7 years, 7 months ago
I agree, that would be useful.
I’ve just checked the core code and it would seem you can pass a post ID as a fourth parameter:
<?php edit_post_link('Edit', '<p>', '</p>', 139); ?>
I think the Codex needs updating…
This was added in version 2.8 by the looks of it: