public function get_all_services($include_custom = true)
{
// Default services
// if you update this list, please update the REST API tests
// in bin/tests/api/suites/SharingTest.php
$services = array('email' => 'Share_Email', 'print' => 'Share_Print', 'facebook' => 'Share_Facebook', 'linkedin' => 'Share_LinkedIn', 'reddit' => 'Share_Reddit', 'twitter' => 'Share_Twitter', 'press-this' => 'Share_PressThis', 'google-plus-1' => 'Share_GooglePlus1', 'tumblr' => 'Share_Tumblr', 'pinterest' => 'Share_Pinterest', 'pocket' => 'Share_Pocket', 'telegram' => 'Share_Telegram', 'jetpack-whatsapp' => 'Jetpack_Share_WhatsApp', 'skype' => 'Share_Skype');
if ($include_custom) {
// Add any custom services in
$options = $this->get_global_options();
foreach ((array) $options['custom'] as $custom_id) {
$services[$custom_id] = 'Share_Custom';
}
}
/**
* Filters the list of available Sharing Services.
*
* @module sharedaddy
*
* @since 1.1.0
*
* @param array $services Array of all available Sharing Services.
*/
return apply_filters('sharing_services', $services);
}