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

Snippets WordPress
Please Rate this ..

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:
https://codex.wordpress.org/Function_Reference/edit_post_link

1
Leave a Reply

avatar
0 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
0 Comment authors
Recent comment authors
  Subscribe  
newest oldest most voted
Notify of