-
-
Save billerickson/9dc2dd9ba0502ba4403501cdaa09d9b9 to your computer and use it in GitHub Desktop.
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
<?php | |
/** | |
* Disable Sharing | |
* | |
*/ | |
function ea_disable_social_sharing( $value, $post_id, $meta_key, $single ) { | |
if( 'ea_share_count_exclude' == $meta_key ) | |
$value = true; | |
return $value; | |
} | |
add_filter( 'get_post_metadata', 'ea_disable_social_sharing', 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment