Web Makinası – Sohbet Butonu
Web Makinası – Sohbet Butonu
Description
Web Makinası – Sohbet Butonu adds a lightweight floating contact button to the front end of a WordPress website.
Features include:
- Normalizes phone numbers for wa.me links and clearly displays the generated number and link.
- Provides admin test buttons for links with or without a predefined message.
- Supports international and local phone number formats such as +90, 0090, 90, and 05xx.
- Supports [url] and [baslik] variables in the predefined message template.
- Adds [urun], [fiyat], and [sku] message variables when WooCommerce is active.
- Provides global content visibility rules for pages, posts, and WooCommerce products.
- Adds per-content visibility overrides on supported edit screens.
- Allows separate desktop and mobile position, offset, and button-size settings.
- Can display an optional short text label next to the button icon.
- Supports an optional display delay with a subtle fade-in.
- Controls mobile, desktop, and logged-in administrator visibility separately.
- Provides configurable z-index and accessibility label settings.
- Accounts for mobile safe-area insets.
- Includes a live desktop/mobile preview with offset, size, position, and delay indicators.
- Exposes prefixed filters and render actions for custom integrations.
- Uses no external JavaScript or icon library at runtime.
- Appears under the shared Web Makinası administration menu.
- Is designed to coexist with a future Web Makinası Core plugin.
The [url] variable is replaced with the current page URL when the visitor clicks the button. The [baslik] variable is replaced with the current document title. On WooCommerce product pages, [urun], [fiyat], and [sku] are replaced with the product name, displayed price, and SKU. WooCommerce-specific variables are empty outside product pages. The final message is URL-encoded before the wa.me link opens.
Translations for WordPress.org releases are managed through translate.wordpress.org. Translation files are not bundled with the plugin package.
This plugin is not affiliated with, sponsored by, or endorsed by WhatsApp LLC or Meta Platforms, Inc. WhatsApp is a trademark of its respective owner.
Developer hooks
The plugin provides these prefixed hooks for custom projects:
- webmakinasi_chat_button_visibility_post_types filters post types that receive per-content visibility controls.
- webmakinasi_chat_button_should_render filters the final render decision.
- webmakinasi_chat_button_phone filters the normalized destination number.
- webmakinasi_chat_button_message_template filters the message template before output.
- webmakinasi_chat_button_classes filters front-end button classes.
- webmakinasi_chat_button_before_render fires immediately before button markup.
- webmakinasi_chat_button_after_render fires immediately after button markup.
Third-party notices
The bundled WhatsApp glyph path is derived from the Font Awesome Free Brands icon set.
Font Awesome Free icons are licensed under CC BY 4.0.
https://fontawesome.com/license/free
Installation
- Upload the plugin ZIP through Plugins > Add New > Upload Plugin, or copy the plugin directory to /wp-content/plugins/.
- Activate the plugin through the Plugins screen in WordPress.
- Open Web Makinası > WhatsApp Button.
- Enter the destination phone number and configure the message, visibility, and appearance options.
- Save the settings.
Reviews
Changelog
1.1.0
- Added clearer phone normalization status and generated-link details.
- Added admin test buttons for plain and predefined-message links.
- Added global page, post, and product visibility rules with searchable content selection.
- Added per-content visibility overrides with nonce and capability protected saving.
- Added separate desktop and mobile position, offset, and button-size controls.
- Added optional button label text with independent mobile label visibility.
- Added configurable display delay with reduced-motion friendly fade behavior.
- Added WooCommerce product message variables [urun], [fiyat], and [sku] when WooCommerce is active.
- Added desktop/mobile live preview modes with position, offset, size, and delay indicators.
- Added logged-in administrator visibility control.
- Added configurable z-index and accessibility label settings.
- Added mobile safe-area positioning support.
- Added prefixed developer filters and render actions.
- Preserved existing 1.0.x settings and front-end appearance by default.
1.0.5
- Fixed predefined messages not being added when the enabled setting had an empty saved template.
- Added a real default message template instead of relying only on placeholder text.
- Prebuilds the message URL on DOM ready and refreshes it during click capture for reliable navigation.
1.0.4
- Changed all translatable source strings to standard English for WordPress.org localization.
- Removed bundled PO, MO, and POT files; translations are managed through translate.wordpress.org.
- Removed the custom translation loader and the obsolete Domain Path header.
- Kept the plugin slug, settings, namespaces, asset handles, URIs, and front-end behavior unchanged.
1.0.3
- Aligned the plugin directory, main plugin file, text domain, and translation file names with the webmakinasi-sohbet-butonu slug.
- Updated the plugin and author URIs to their distinct canonical addresses.
- Kept existing settings, namespaces, asset handles, and front-end behavior unchanged.
1.0.2
- Made Turkish the source and default interface language.
- Added bundled English translations for the administration screen and front-end accessibility text.
- Localized the administration JavaScript validation message.
- Added a valid languages directory and Domain Path header.
1.0.1
- Renamed the plugin and slug to avoid using a restricted trademark in the plugin identity.
- Removed the unnecessary manual text-domain loader.
- Removed the unused Domain Path header.
- Replaced the root markdown license notice with this readme notice.
- Prefixed uninstall variables according to WordPress coding standards.
- Changed the WordPress.org-facing readme content to standard English.
- Added one-time migration of settings from the original test build.
1.0.0
- Initial release.