Filter
rpress_default_notification_sound
On this page
Filters the default URL of the new order notification sound.
Used when the notification sound option is empty. The default is the new-order.wav file bundled in the plugin's assets/sounds directory.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$sound_url | string | Sound file URL. |
Return value#
string. Sound file URL.
Example#
function my_notification_sound( $sound_url ) {
return content_url( '/uploads/sounds/ding.mp3' );
}
add_filter( 'rpress_default_notification_sound', 'my_notification_sound' );
Source#
Applied in:
includes/rp-core-functions.php(line 2827), inrpress_default_notification_sound()
Was this page helpful?
