Created
January 19, 2013 14:07
-
-
Save WebEndevSnippets/4572833 to your computer and use it in GitHub Desktop.
Genesis: Add Post Edit Link on Published Books CPT Single
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
add_action( 'genesis_after_post_content', 'we_add_books_edit_link', 5 ); | |
/** | |
* Add Post Edit Link on Published Books CPT Single | |
* | |
*/ | |
function we_add_books_edit_link() { | |
if ( 'we_published-book' == get_post_type() && is_single() ) { | |
echo '<div class="clear">'; | |
edit_post_link( 'Edit', '', '' ); | |
echo '</div>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment