/ Published in: PHP

Wordpress creates an anchor with a class .post-edit-link for styling
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php if(current_user_can('edit_posts', $post_id) || current_user_can('edit_others_posts')) : edit_post_link('Edit', '', ''); endif; ?>
Comments
