title: Wordpress: Check if logged in users have post edit capabilities
body: <p>How to check in WordPress if a logged in user has specific capabilities (for example editing the post-type "product")? How to display the "Edit page" link to users which have the required capability?</p>