Skip to content
Docs
Get RestroPress

Filter

rpress_default_notification_sound

Updated
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#

ParameterTypeDescription
$sound_urlstringSound 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), in rpress_default_notification_sound()
Was this page helpful?