Skip to content

Commit

Permalink
Disable Jetpack Sharing and Likes
Browse files Browse the repository at this point in the history
Likes don't work without Javascript and we should wait until Sharing
lands (ampproject/amphtml#1856)
  • Loading branch information
mjangda committed Feb 18, 2016
1 parent 36c97d1 commit 8be2100
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jetpack-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@
*
**/
function amp_jetpack_mods() {
amp_jetpack_disable_sharing();
amp_jetpack_disable_related_posts();
}

function amp_jetpack_disable_sharing() {
add_filter( 'sharing_show', '__return_false', 100 );
}

/**
* Remove the Related Posts placeholder and headline that gets hooked into the_content
*
Expand Down

0 comments on commit 8be2100

Please sign in to comment.