Opened 10 years ago
Closed 10 years ago
#911 closed enhancement (fixed)
Banish Jetpack's Branding from Twitter Cards
Reported by: | kraftbj | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | General | Keywords: | |
Cc: |
Description
See twitter convo at https://twitter.com/ericandrewlewis/status/571918662417944576
Twitter pulls this from the twitter:site
meta tag, which defaults to @Jetpack. You can override with something like this:
function tweakjp_custom_twitter_site( $og_tags ) { $og_tags['twitter:site'] = '@wordpress'; return $og_tags; } add_filter( 'jetpack_open_graph_tags', 'tweakjp_custom_twitter_site', 11 );
I didn't put it in patch form because I figure a lot more cool stuff could be done with it, e.g. a mu-plugin that sets the twitter:site to a twitter account based on what site is in question and/or if one is set manually in Setting->Sharing (e.g. @wordcamp only if the tag still equals @jetpack
in the event a local camp didn't change the setting (if they're allowed to?), @wordpress, @bbpress, etc).
Left this as General as it could be Instance wide.
Note: See
TracTickets for help on using
tickets.
Fixed by @pento in dotorg r9916