filter

sharing_services

Filters the list of available Sharing Services.

Parameters

$services
array

Array of all available Sharing Services.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.

Notes

You can use the sharing_services filter to hide some buttons from the Sharing Settings interface, so they can never be activated on the site. In the example below, we’ll remove the Facebook button:
function jetpack_developer_rm_facebook( $services ) {
	
	if ( isset( $services['email'] ) ) {
		unset( $services['facebook'] );
	}

	return $services;
}
add_filter( 'sharing_services', 'jetpack_developer_rm_facebook' );