WP Sound Action Plugin
WP Sound Actions – Features Overview
1️⃣ Multiple Class-Based Sound Rules
Users can define multiple CSS classes in the backend.
Assign a different sound file (MP3) for each class.
Select the event type for each class:
HoverorClick.Add or remove rows dynamically in the admin panel.
JavaScript ensures sounds are only played on elements with the selected class.
2️⃣ Global Sound for All Buttons
Option to enable “Apply sound to all buttons” across the website.
Assign a global sound file that will play on:
<button>elements<a>linksElementor buttons
.elementor-buttonInput buttons (
type="button"andtype="submit)
Click sound is reliable for all buttons site-wide.
3️⃣ Frontend JavaScript Handling
Preloads audio files for faster playback.
Plays sound on Hover (mouseenter) or Click, depending on user selection.
Resets
currentTime = 0to allow rapid repeated plays.Supports multiple class rules and the global button sound simultaneously.
4️⃣ Simple Backend UI (Table Repeater)
Table layout for Class Name, Sound File URL, and Event Type.
Users can add or remove rows dynamically.
Inline JavaScript handles row operations smoothly.
Instruction below Class Name input:
*Please add the dot (.) before the class name, e.g., .my-class
5️⃣ Plugin Branding
Admin settings page displays:
Plugin by Azeem AkhtarClickable link to your website.
Positioned directly below the “Save Changes” button.
6️⃣ Hover Sound Best Practices
Recommended: short MP3 files (0.1–0.3 seconds) for better user experience.
Hover sound only plays on elements with the assigned class.
Click sound can be applied globally or per class.
7️⃣ Reusable & Expandable
Users can add unlimited rules.
JavaScript dynamically applies sounds without editing theme files.
Fully compatible with any WordPress theme.
🔊 Add “Sound On/Off” Toggle (Frontend Switch)
🧩 How it will work
✔ A toggle button will appear on the website
✔ When clicked, it will instantly mute or unmute all sounds
✔ User choice will be saved in LocalStorage, so it remembers on page reload
✔ Works with all current plugin sounds (hover + click + global buttons)
💡 Future Enhancements
Built-in Media Uploader for sound files (no need to paste URLs).
Custom volume control for each sound.
Option for Hover + Click sound simultaneously for one class.
Preview sound button in admin before saving changes.
Premium admin panel styling (icons, color coding, better UX).