Created
January 19, 2015 19:16
-
-
Save ethanclevenger91/967783c1af6858a43e83 to your computer and use it in GitHub Desktop.
omit some post types from shareaholic. I hate this plugin.
This file contains hidden or 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('the_post', 'remove_share_buttons'); | |
function remove_share_buttons() { | |
if(get_post_type() == 'staff_members') { | |
remove_action('the_content', array('ShareaholicPublic', 'draw_canvases')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment