This WordPress snippet will add an “edit page” link on the WordPress posts and pages. Only users who are logged in and have the necessary rights to edit that page will be able to see this link (administrator or author).
<?php edit_post_link(__('Edit This')); ?>
Was this post helpful?
Let me know if you liked the post. That’s the only way I can improve. 🙂