Created
June 28, 2011 16:02
-
-
Save wildiney/1051476 to your computer and use it in GitHub Desktop.
WordPress - Add custom edit post link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if(current_user_can('administrator')){ ?> | |
<a href="<?php bloginfo('url');?>/wp-admin/edit.php?p=< ?php the_ID(); ?>">Edit Post</a> | |
<?php } ?> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment