Skip to content

Instantly share code, notes, and snippets.

@krogsgard
Created July 12, 2013 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krogsgard/5987650 to your computer and use it in GitHub Desktop.
Save krogsgard/5987650 to your computer and use it in GitHub Desktop.
<?php
function poststatus_get_love_it() {
if ( 'post' == get_post_type() ) {
$love_output = lip_love_it_link( $post_id = get_the_ID(), $link_text = ' <div class="genericon genericon-collapse"></div> ', $already_loved = '', $echo = false );
return $love_output;
}
}
function poststatus_insert_love_it() {
echo poststatus_get_love_it();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment