Filters the list of available Sharing Services.
Parameters
- $services
array Array of all available Sharing Services.
Changelog
- Introduced in Jetpack 1.1.0
How to use this hook
Notes
You can use thesharing_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' );