<?php if (current_user_can('level_10')){ ?>
<div class="edit-btn"><a href="<?php bloginfo('wpurl');?>/wp-admin/post.php?post=<?php the_ID(); ?>&action=edit"><i class="material-icons">edit</i></a></div>
<?php } ?>
Edit Link for WordPress
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.