Skip to content

Instantly share code, notes, and snippets.

View spencermorin's full-sized avatar

Spencer Cameron-Morin spencermorin

View GitHub Profile
<?php
function my_add_twitter_card_extras( $tags ) {
$tags[ 'twitter:site' ] = 'automattic'; // set @username of website
return $tags;
}
add_filter( 'jetpack_open_graph_tags', 'my_add_twitter_card_extras' );
?>
<?php
/*
* Plugin Name: Import Meta Backup
* Plugin URI: http://somesite.com/where-this-plugin-lives/
* Description: Backs up original data in meta.
* Author: Automattic
* Author URI: http://theauthor.com/
* Version: 1.0
* Text Domain: import-meta-backup