Skip to content
WordPress.org
  • Showcase
  • Plugins
  • Themes
  • Hosting
  • News
    • Learn WordPress
    • Documentation
    • Education
    • Forums
    • Developers
    • Blocks
    • Patterns
    • Photos
    • Openverse ↗︎
    • WordPress.tv ↗︎
    • About WordPress
    • Make WordPress
    • Events
    • Five for the Future
    • Enterprise
    • Gutenberg ↗︎
    • Job Board ↗︎
  • Swag ↗︎
  • Get WordPress
Get WordPress
WordPress.org

Plugin Directory

HavelByte Like and Share

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

HavelByte Like and Share

By havelbyte
Download
  • Details
  • Reviews
  • Installation
  • Development
Support

Description

HavelByte Like and Share adds like and share buttons at the beginning and end of posts by default. Both rows show the same totals. Use the Settings tab to change placement, pick a heart or thumbs-up animation, choose button sizes (XS to XL), and preview changes on desktop and mobile before saving. The post editor can override placement for an individual post.

The Share button uses the device’s native share menu when supported and configured. On desktop, choose between a menu and individual app icons. You can choose which services to offer and whether to show their labels. English is the source language. German translations are bundled so standalone ZIP installations can display German immediately. WordPress.org language packs take priority when available.

The Statistics tab shows the most liked and most shared posts. Choose 10, 20, 30, 50 or all results, and open the activity history for an individual post. New activity has a timestamp from version 1.3.1 onward. The dashboard displays timestamps in the WordPress site’s time zone. Older activity remains in the totals. An unlike removes the corresponding like from both totals and history.

Privacy

The first like creates a random identifier in browser local storage. WordPress stores a hash of that identifier with the post and the time of the like. This lets a reader remove the like from the same browser. If share counting is on, the site’s database stores the post, timestamp, and a random reference for each recorded share action.

Deleting a post removes its reaction records. Deactivating the plugin preserves them. Before deleting the plugin in WordPress, enable the optional cleanup setting in the Privacy tab to remove the reaction table, settings, and post-specific placement settings for the site. The Privacy tab and the WordPress Privacy Policy Guide provide suggested wording for the site’s privacy policy.

The Privacy tab provides an editable text suggestion. Use “Copy text with links” to copy it as rich text for your privacy policy. The suggestion includes an optional installation statistics paragraph and links to HavelByte.

External services

Share buttons use locally bundled icons and standard sharing links. A sharing service receives data only when a reader chooses to open it. Depending on the destination, the share link passes the current post URL, title, and (for Pinterest) featured image. The reader can also choose an app through the native share menu on a compatible device.

  • Facebook and LinkedIn receive the post URL.
  • X, WhatsApp, Telegram, Bluesky, Reddit, and Threads receive the post URL and title.
  • Pinterest receives the post URL, title, and featured image URL if available.
  • Instagram and TikTok open the platform and offer the URL via the local clipboard. The email option passes the title and URL to the reader’s email app.
  • The admin feedback form uses WordPress mail to send the subject, message, account email address used as the reply-to address, and any attached image to the recipient displayed before sending. Accepted image formats are JPEG, PNG, and WebP. The upload limit is up to 5 MB and respects a lower WordPress limit. The plugin removes the temporary image after the send attempt.
  • The optional donation link opens PayPal when an administrator clicks it.

HavelByte installation statistics

This feature is off by default. The Plugins screen and the first settings visit show a skippable opt-in. After a WordPress administrator explicitly enables it, the site sends a random installation ID, the plugin identifier, and its version over HTTPS to the HavelByte reporting endpoint. HavelByte records the date and time of receipt and uses the ID to count unique reporting installations and see which versions they run. The request contains no WordPress version, visitor information, likes, or shares. Hosting infrastructure may log connection data, including the sending server’s IP address. See the HavelByte privacy policy.

An additional unchecked choice is shown after installation or upgrade. With separate consent, each installation report also includes the website domain, without paths or URL parameters. HavelByte displays the last reported domain in its private dashboard to identify the reporting website. We can withdraw domain sharing in the Installation Statistics tab. The plugin then sends a removal request and retries it if needed. HavelByte removes the domain after withdrawal or during the next cleanup when no domain has been reported for 30 days. The Installation Statistics tab lets administrators copy their local installation ID for support even if reporting is disabled.

The first report is sent when you save your consent. When at least a day has passed since the last send attempt, the next request that reaches WordPress triggers the next report. The feature does not rely on WP-Cron or a hosting cron job. Requests served entirely from cache do not trigger a report. The Installation Statistics tab shows the next automatic report and offers a Send report now button for troubleshooting. The server allows one attempt per minute and the button shows the remaining wait. Use Settings → HavelByte Like and Share → Installation Statistics to stop reporting at any time. Withdrawing consent stops future reports. HavelByte retains previously received installation reports for historical counts. Removing the plugin clears consent and the local ID.

For local testing, set define( 'LIKE_AND_SHARE_INSTALLATION_REPORTING_TEST', true ); in wp-config.php. With that flag and your consent, an automatic report becomes due five minutes after the previous attempt and is sent at the next WordPress request. Remove the flag for daily reporting.

The admin pages link to HavelByte and display copyright details from local plugin metadata. The app icons come from Bootstrap Icons and their MIT license is included at licenses/bootstrap-icons.txt.

Daily statistics from 1.4.0

New successful actions can be aggregated per post and site calendar day. Share
platforms include all configured targets, native sharing, and unknown for older
clients. Counts describe clicks and handoffs, not verified publication by a
sharing service. Historical lifetime counts and the original Free activity
history stay intact. No historical daily/platform breakdown is reconstructed.

Settings provide a visible local aggregation toggle, daily retention (default
365 days, 0 unlimited), DNT/GPC and optional statistics consent. Set
window.likeAndShareStatisticsConsent = true only after actual consent, or use
Complianz statistics consent. Set it false on withdrawal. There is no replay of
pre-consent activity. Functional votes and lifetime totals remain independent.
The Privacy tab can delete daily aggregates without deleting lifetime data.
Cleanup runs with WP-Cron; due to batching it may require multiple runs.

The existing hashed visitor identifier and share references are retained for
functional vote state, lifetime counts and Free history. A separate temporary
operation reference and request digest prevent retries for seven days; they do
not store IP addresses or browser fingerprints. New daily data contain only
post, calendar day, metric, platform/reaction category and count. No visitor
statistics are transmitted to HavelByte. Optional installation reports remain
separate and retain their existing consent.

Premium is an optional separate plugin; no premium-only implementation or
license gate is contained in this Free package. Its static illustration contains
clearly labelled sample values only and appears exclusively in plugin statistics.

Änderungen 1.4.0 (Deutsch)

Lokale Tagesaggregate, Plattformzuordnung, atomare Aktualisierung und
Wiederholungsschutz ergänzt. Alte Zähler, Einträge, Einstellungen und
Einwilligungen bleiben erhalten. Aufbewahrung, Löschung, DNT/GPC und optionale
Statistik-Einwilligung sind konfigurierbar. Die Premium-Vorschau ist ausdrücklich
als statisches Beispiel gekennzeichnet. Feedback enthält bearbeitbare
Kontaktdaten, Bildanhang und eine verpflichtende Datenschutzzustimmung.

Installation

  1. Install and activate HavelByte Like and Share in WordPress.
  2. Open Settings → HavelByte Like and Share to change the defaults or check your statistics.
  3. Review the Privacy tab for a suggested privacy policy text and the uninstall setting. The Installation Statistics tab lets you manage optional reporting.

Use a Shortcode block to place the buttons manually:

  • [like_and_share] shows both enabled buttons.
  • [like_and_share show="like"] shows the like button.
  • [like_and_share show="share"] shows the share button.

A shortcode in a post overrides automatic placement there. Automatic placement is available for public posts and optionally pages. With a classic theme, the “Below the title” option places the buttons at the start of the content.

FAQ

What counts as a share action?

Opening a share target, successfully copying a link, or a successful handoff to the device’s share menu counts as a share action. It measures interaction with the buttons. Whether the recipient service actually publishes or sends a post is outside the plugin’s view. Share counting and displaying the share total are separate options.

What happens with Instagram and TikTok?

Those shortcuts open the platform and copy the post link, ready for you to paste. If access to the clipboard fails, the plugin displays the link for manual copying.

How do I change the feedback recipient?

Define LIKE_AND_SHARE_FEEDBACK_EMAIL in wp-config.php to override the address shown in the feedback form. The override survives plugin updates.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“HavelByte Like and Share” is open source software. The following people have contributed to this plugin.

Contributors
  • havelbyte

Translate “HavelByte Like and Share” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.4.4

  • Adds a disabled preview of the Premium Like button with an emoji picker. / Zeigt als Premium-Vorschau den Like-Button mit Emoji-Auswahl.

1.4.3

  • Unified HavelByte admin sidebar with short names, shared Free/Premium entries, inactive plugin links and existing settings URLs preserved.

1.4.2

  • Fixes feedback checkbox sizing and long privacy text wrapping.
  • Expands labelled, disabled Premium previews with design, emoji and statistics examples.
  • Uses plain-language daily-statistics and privacy labels; the privacy copy button is simply Copy.
  • Improves bundled German wording, including plugin-list descriptions.

1.4.1

  • Integrates optional Premium design/reaction controls into the existing settings when the compatible add-on is active; Free shows clearly labelled disabled examples and website links.
  • Explains daily counts, browser privacy signals, consent and retention in plain language.
  • Bounds counter requests to ten seconds, supports late add-on initialization and newly inserted widgets, and preserves existing counts.
  • Premium changes require explicit saved choices; preset selection does not enable custom design.

1.4.0

  • Added local daily aggregates and share-platform attribution for new actions.
  • Kept existing counters, settings and records; historical charts are not invented.
  • Added atomic writes, retry deduplication and documented extension hooks.
  • Added daily retention, deletion, optional statistics consent and DNT/GPC controls.
  • Added an explicitly labelled static add-on illustration in plugin statistics.
  • Improved feedback consent and editable contact fields; retained image attachments.
  • Kept bundled German translations for standalone ZIP installations.

1.3.14

  • Restored bundled German translations for standalone installations.
  • Improved translation file compatibility with older supported WordPress versions.

1.3.13

  • Standardized internal identifiers and preserved settings from previous versions.
  • Updated translation packaging for WordPress.org.
  • Simplified feedback upload initialization.

1.3.12

  • Added separate opt-in for the website domain and a copyable installation ID for support.
  • Updated reporting disclosures and the privacy policy text.

1.3.11

  • Added a dedicated Installation Statistics tab and a skippable opt-in on the Plugins screen and first settings visit.
  • Added a 60-second countdown and a server-enforced limit for manual reporting.
  • Updated the privacy policy suggestion and added rich-text copying with HavelByte links.

1.3.10

  • Send due installation reports on WordPress requests without a cron job. Calculate the next report time from the last send attempt and prevent duplicate sends from concurrent requests.

1.3.9

  • Send the first installation report immediately on consent. Show the next scheduled report, add a manual send button, and display connection errors or HTTP status codes.

1.3.8

  • Added optional installation reporting with explicit consent, a privacy setting, and a local test mode.

1.3.7

  • Added a dashboard widget for likes and shares and expanded the privacy notice.

1.3.6

  • Standardized the plugin listing and linked its author and website to HavelByte.

1.3.5

  • Updated the default feedback recipient.

1.3.4

  • Matched the admin header and copyright footer to HavelByte Contact Forms, with a HavelByte link in both places.

1.3.3

  • Renamed the plugin to HavelByte Like and Share.
  • Added a PayPal donation link above the plugin’s admin tabs.

1.3.2

  • Added a Privacy tab with a copyable privacy policy text and an optional cleanup setting for uninstall.
  • Removed the background request for publisher and copyright details.
  • Added a feedback recipient notice and strengthened temporary image handling.
  • Updated database queries, input validation, output escaping, translations, and directory documentation.

1.3.1

  • Added the Statistics tab, configurable rankings, and timestamped activity.
  • Arranged Settings, live preview, and information/feedback in three columns on wide screens.

Meta

  • Version 1.4.4
  • Last updated 24 minutes ago
  • Active installations Fewer than 10
  • WordPress version 6.3 or higher
  • Tested up to 7.1.5
  • PHP version 7.4 or higher
  • Tags
    likesPost Statisticsshare buttonssocial sharing
  • Advanced View

Ratings

No reviews have been submitted yet.

Your review

See all reviews

Contributors

  • havelbyte

Support

Got something to say? Need help?

View support forum

  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Documentation
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Events
  • Donate ↗
  • Swag ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org

The WordPress® trademark is the intellectual property of the WordPress Foundation.

  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • Visit our Facebook page
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
Code is Poetry