Add a “edit page-/post” link on WordPress posts and pages

Snippets WordPress

Put this in the theme post-/page file to make an “Edit Page” or “Edit Post” link in your template file – that takes you into the admin page-/post edit mode. This link will only be visible when the viewer is logged in and has appropriate permissions to edit that page (administrator or author).

Related links:

Leave a Reply

Your email address will not be published. Required fields are marked *