Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Created May 29, 2015 17:19
Show Gist options
  • Save mikejolley/71aee4773bf99b8eefb7 to your computer and use it in GitHub Desktop.
Save mikejolley/71aee4773bf99b8eefb7 to your computer and use it in GitHub Desktop.
<?php
global $post;
if ( current_user_can( 'manage_options' ) && 'resume' === get_post_type( $post->ID ) ) {
$public_link = get_resume_share_link( $post->ID );
echo '<a href="' . $public_link . '">Share Link</a>';
}
?>
@tintomatoes
Copy link

For us WP JM newbies, what does this do? Please add a description :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment