How to customize sounds in the plugin?
Built-in Sound Customization
Better Messages provides built-in options to customize sounds directly from the plugin settings without any code.
Navigate to Better Messages → Settings → Notifications tab and scroll to the Sounds Customization section.
Available Options
Message Notification Sound
- Volume - Set from 0 to 100 (set to 0 to disable the sound completely)
- Custom Sound - Click "Select custom sound" to choose an MP3 file from your WordPress Media Library
- Reset - Click "Reset default sound" to restore the original notification sound
Message Sent Sound
- Volume - Set from 0 to 100 (set to 0 to disable the sound completely)
- Custom Sound - Click "Select custom sound" to choose an MP3 file from your WordPress Media Library
- Reset - Click "Reset default sound" to restore the original sent sound
Incoming Call Sound (Premium)
- Volume - Set from 0 to 100 (set to 0 to disable the sound completely)
- Custom Sound - Click "Select custom sound" to choose an MP3 file from your WordPress Media Library
- Reset - Click "Reset default sound" to restore the original incoming call sound
Outgoing Call Sound (Premium)
- Volume - Set from 0 to 100 (set to 0 to disable the sound completely)
- Custom Sound - Click "Select custom sound" to choose an MP3 file from your WordPress Media Library
- Reset - Click "Reset default sound" to restore the original outgoing call sound
You can preview any sound by clicking the "Play" button before saving your changes.
Advanced: Replace Sounds Folder via Code
To be able to implement this guide, you need to learn how to insert PHP snippets to your website.
You can find guide here: WP Beginner
If you need to replace multiple sound files programmatically, you can use the bp_better_messages_sounds_assets filter.
Plugin keeps default sound files in this folder: /plugins/bp-better-messages/assets/sounds
You can copy this folder to another location that won't be overwritten on plugin updates, then use this filter to point to your custom sounds folder:
<?php
add_filter('bp_better_messages_sounds_assets', function($sounds_url){
return 'https://yourwebsite.com/sounds/'; // New sounds url
});
Sound Files
The following sound files can be replaced:
| File | Description |
|---|---|
notification.mp3 | Played when a new message is received |
sent.mp3 | Played when a message is sent |
calling.mp3 | Played for incoming calls (Premium) |
dialing.mp3 | Played for outgoing calls (Premium) |
Make sure your custom folder contains MP3 files with the same names as the originals.