Title: Native Social Share
Author: M Khoirul Huda
Published: <strong>27, Ochobre de 2025</strong>
Last modified: 27, Ochobre de 2025

---

Guetar plugins

![](https://ps.w.org/native-social-share/assets/icon-256x256.jpg?rev=3385242)

# Native Social Share

 By [M Khoirul Huda](https://profiles.wordpress.org/mkhuda/)

[Download](https://downloads.wordpress.org/plugin/native-social-share.1.1.0.zip)

 * [Details](https://ast.wordpress.org/plugins/native-social-share/#description)
 * [Reviews](https://ast.wordpress.org/plugins/native-social-share/#reviews)
 *  [Installation](https://ast.wordpress.org/plugins/native-social-share/#installation)
 * [Development](https://ast.wordpress.org/plugins/native-social-share/#developers)

 [Support](https://wordpress.org/support/plugin/native-social-share/)

## Description

**Native Social Share** adds a clean and simple share button to your posts — powered
by the browser’s _native Web Share API_ with graceful fallbacks for Twitter (X),
Facebook, and LinkedIn.

 * Automatically adds share buttons below, above, or both positions in posts
 * Supports **auto dark mode** (via `prefers-color-scheme`)
 * No JavaScript dependencies (zero jQuery)
 * Lightweight (~5KB including CSS & JS)
 * Progressive enhancement: uses native share where available, fallbacks otherwise

This plugin focuses on simplicity, accessibility, and performance. Perfect for modern
WordPress themes that prioritize speed and native UX.

### License

This plugin is licensed under the [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html).

You are free to modify and redistribute it under the same license.

### Author

Developed by **M Khoirul Huda**
 Website: [https://mkhuda.com](https://mkhuda.com)
GitHub: [https://github.com/mkhuda/native-social-share-wp](https://github.com/mkhuda/native-social-share-wp)

## Screenshots

 * [[
 * Native Share button with fallback links (light mode)
 * [[
 * Dark mode appearance (automatic)

## Installation

 1. Upload the plugin folder to `/wp-content/plugins/native-social-share/`
 2. Activate the plugin through **Plugins  Installed Plugins**
 3. Go to **Settings  Native Social Share** to configure:
 4.  * Position: Above, Below, or Both
     * Enabled platforms (Twitter, Facebook, LinkedIn)
 5. Save changes and enjoy native sharing on your posts!

## FAQ

### Does it require jQuery or Font Awesome?

No, it’s written in pure PHP and vanilla JavaScript with inline SVG icons.

### What happens on unsupported browsers?

When `navigator.share` isn’t available, the plugin shows fallback links for Twitter,
Facebook, and LinkedIn.

### Is there a shortcode or block?

Not yet — planned for a future update.

### Does it support caching and CDNs?

Yes. All assets are static and safe for full-page caching/CDN optimization.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Native Social Share” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ M Khoirul Huda ](https://profiles.wordpress.org/mkhuda/)

[Translate “Native Social Share” into your language.](https://translate.wordpress.org/projects/wp-plugins/native-social-share)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/native-social-share/),
check out the [SVN repository](https://plugins.svn.wordpress.org/native-social-share/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/native-social-share/)
by [RSS](https://plugins.trac.wordpress.org/log/native-social-share/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.0 – 2025-10-27

 * Updated all function and option prefixes from `nss` to `natssh` (per WP.org guidelines)
 * Added PHP namespace `Mkhuda\NativeSocialShare`
 * Added **“Both (Above & Below)”** position option for more flexibility
 * Fixed license declaration mismatch between plugin header and readme
 * Improved option migration for smoother upgrade
 * Minor code cleanup and standard compliance (PHPCS/WPCS)

#### 1.0.0 – 2025-10-15

 * Initial public release
 * Native Web Share + fallback links
 * Auto Dark Mode support
 * Configurable social buttons

## Meta

 *  Version **1.1.0**
 *  Last updated **6 meses ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/native-social-share/)
 * Tags
 * [lightweight](https://ast.wordpress.org/plugins/tags/lightweight/)[share](https://ast.wordpress.org/plugins/tags/share/)
   [social](https://ast.wordpress.org/plugins/tags/social/)[web share api](https://ast.wordpress.org/plugins/tags/web-share-api/)
 *  [Advanced View](https://ast.wordpress.org/plugins/native-social-share/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/native-social-share/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/native-social-share/reviews/)

## Contributors

 *   [ M Khoirul Huda ](https://profiles.wordpress.org/mkhuda/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/native-social-share/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://mkhuda.com)