| 开发者 |
jumedeenkhan
mozedia |
|---|---|
| 更新时间 | 2026年9月27日 02:59 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[sharetosocial] shortcode. An optional floating share bar is also available.
The plugin includes 40+ sharing networks and actions, including popular social networks, messaging services, bookmarking sites, developer communities, AI assistants, and built-in sharing tools.
All social media icons are included as inline SVG icons, and the plugin does not load icon fonts, external libraries, tracking scripts, or third-party assets.
Built with privacy in mind — ShareToSocial does not track visitors or set cookies. Third-party sharing services are contacted only when a visitor chooses to use a share button.
Share networks
ShareToSocial currently supports 44 sharing networks and actions:
utm_source is automatically set to the network name, while utm_medium and utm_campaign can be customized.
Custom CSS
Add your own CSS to fine-tune the appearance beyond the built-in design options.
Data control
Choose whether plugin settings and per-post overrides should be removed when the plugin is deleted.
A factory reset option is also available to restore all plugin settings to their defaults.
Per-post controls
Each supported post or page can have its own ShareToSocial settings.
From the ShareToSocial panel in the editor, you can independently set:
[sharetosocial] shortcode to manually place inline share buttons anywhere shortcodes are supported.
Basic usage:
[sharetosocial]
You can also override the heading, networks, URL, and title:
[sharetosocial heading="Share this post" networks="facebook,linkedin,whatsapp" url="https://example.com/" title="My Page Title"]
Shortcode attributes:
heading — custom heading textnetworks — comma-separated network keysurl — custom URLtitle — custom share titledo_shortcode().
Developer-friendly
ShareToSocial provides filters for developers who want to customize the generated output.
/wp-content/plugins/social-media-share-buttons.[sharetosocial] shortcode. To place them in a sidebar, use the ShareToSocial – Share Buttons widget.ShareToSocial supports 40+ networks and sharing actions, including Facebook, X, LinkedIn, WhatsApp, Messenger, Telegram, Reddit, Threads, Bluesky, Mastodon, email, copy link, native device sharing, Print, Viber, SMS, bookmarking services, and AI assistants such as ChatGPT, Gemini, Claude, Perplexity, Copilot, DeepSeek, Grok, and Meta AI.
Yes. Inline buttons and the floating share bar have independent network selection and drag-and-drop ordering.
Yes. The ShareToSocial panel in the editor allows you to set inline buttons and the floating share bar independently to Default, On, or Off for individual content.
Yes. Use the [sharetosocial] shortcode anywhere shortcodes are supported, insert the ShareToSocial Share Buttons Gutenberg block in the block editor, or add the ShareToSocial – Share Buttons widget to a widget area.
Yes. The ShareToSocial Share Buttons block lets you add share buttons anywhere in your content. Networks are added with the built-in + button (just like the core Social Icons block) and can be removed individually; design controls live in the block's sidebar.
Yes. The ShareToSocial – Share Buttons classic widget places the share buttons in any widget area, with an optional title.
Yes. In the General settings you can choose categories whose posts should not show the automatic inline share buttons. A per-post override set to On still forces buttons on for that individual post.
Yes. The shortcode works independently of automatic content placement.
Yes. The url and title attributes can override the current page URL and title.
Yes. You can choose from eight button styles, four sizes, adjustable spacing, brand colors, a custom color, or monochrome styling.
Yes. ShareToSocial can generate Open Graph and Twitter Card metadata for supported singular content. If a supported SEO plugin already provides these tags, ShareToSocial skips its own output to avoid duplicates.
Yes. Enable UTM tracking in Advanced settings and choose the utm_medium and utm_campaign values. The network name is automatically used as utm_source.
No. The plugin includes its icons as local inline SVGs and does not require icon fonts or frontend libraries.
No. The plugin does not track visitors or set cookies. A third-party sharing service is contacted only when a visitor chooses to use its share button.
ShareToSocial detects several supported SEO plugins and skips its own Open Graph/Twitter Card metadata when another plugin is already handling those tags.
Yes. The plugin uses its own markup and styles and does not depend on theme-specific share-button classes.
Yes. Advanced settings let you choose between a centered popup window and a normal new tab/window.
Yes. You can enable larger touch targets and hidden screen-reader labels for icon-only buttons.
By default, plugin settings are preserved so they can be restored if you reinstall the plugin later. You can enable the data deletion option in Advanced settings to remove plugin settings and per-post overrides when the plugin is deleted.
Yes. Enable mobile hiding and choose the screen-width breakpoint at which the floating bar should be hidden.
ShareToSocial.init() for page-builder/AJAX content.target="_blank" only on real web URLs.STSocial_ / stsocial_ code structure.[sharetosocial] shortcode.