Return a list of social media sharing services where an url can be shared.
social_media_links( string $url [, array $options ] ) : string
$url (string) (Required) The URL to share.
$options (array) (Optional) Default value: []
Name | Type | Default | Description |
---|---|---|---|
class | string | '' | Link CSS class. |
bool | true | Enable Facebook sharing. | |
bool | true | Enable Twitter sharing. | |
bool | true | Enable Reddit sharing. | |
vk | bool | true | Enable VK sharing. |
bool | true | Enable Whatsapp sharing. | |
telegram | bool | true | Enable Telegram sharing. |
bool | true | Enable Linkedin sharing. |
(string)
echo social_media_links('http://example.com/');