semicolon
7/14/2015 - 2:03 PM

WordPress functions.php に AddThis 設定を追加

WordPress functions.php に AddThis 設定を追加

add_action('wp_footer', 'addthis_conf');

function addthis_conf() {
echo <<<EOS
<script type="text/javascript">
var addthis_share =
{
    templates: {
                   twitter: '{{title}} {{url}} (from @semicolon)'
               }
}
</script>
EOS;
}