Skip to content

Instantly share code, notes, and snippets.

@ramseyp
Created February 12, 2019 22:09
Embed
What would you like to do?
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