Set New Blog Jetpack Default Options
<?php
/*
* Set New Blog Jetpack Default Options
* Added 10/15/15
*/
function fcc_new_site_options( $blog_id, $user_id, $domain, $path, $site_id, $meta ) {
//Switch to New Blog Site//
switch_to_blog( $blog_id );
//Dismiss Admin Nag//
Jetpack_Options::update_option( 'dismissed_manage_banner', true );
//Set Jetpack Sharing Services//
$jp_sharing_services = array(
'visible' =>
array (
0 => 'facebook',
1 => 'twitter',
2 => 'google-plus-1',
3 => 'pinterest',
4 => 'reddit',
),
'hidden' =>
array (
0 => 'email',
1 => 'linkedin',
2 => 'tumblr',
3 => 'pocket',
4 => 'press-this',
5 => 'print',
),
);
update_option( 'sharing-services', $jp_sharing_services );
//Set Jetpack Sharing Options//
$jp_sharing_options = array(
'global' => (array( 'button_style' => 'icon', 'sharing_label' => false, 'open_links' => 'same',
'show'=> array( 0 => 'index', 1 => 'post', ),
'custom' => array(),
)),
);
update_option( 'sharing-options', $jp_sharing_options );
//Return to Source//
restore_current_blog();
}
add_action( 'wpmu_new_blog', 'fcc_new_site_options' );