Skip to content

Instantly share code, notes, and snippets.

@ramseyp
Created February 12, 2019 22:09
Show Gist options
  • Save ramseyp/80fb0e9c2e42526e112aaaccd20f7ae9 to your computer and use it in GitHub Desktop.
Save ramseyp/80fb0e9c2e42526e112aaaccd20f7ae9 to your computer and use it in GitHub Desktop.
filter shared counts data
function shared_counts_flipboard_data_properties( $attr, $link ) {
if ( 'flipboard' === $link['type'] ) {
$attr['flip-widget'] = 'shareflip';
}
return $attr;
}
add_filter( 'shared_counts_link_data', 'shared_counts_flipboard_data_properties', 5, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment