MP3 Audio Player
Search for articles about the Audio Player and WordPress Theme

Code Snippets / Extra

Here is a small of custom function you can use/hook in your theme. We keep this library up to date as soon as we add new code snippets asked by our users.

Enable No Track Skip attribute on ALL players of your website automatically

Add this to your theme’s child function.php

add_filter( 'srp_track_skip_attribute', 'your_prefix_function_callback', 10, 1);
function your_prefix_function_callback($arg) {
    return "on";

Display terms with no assigned posts yet in Elementor Editor when you edit the MP3 Audio Player widget.

Add this to your theme’s child function.php

add_filter('sonaar/hide_empty_terms', function($hide_empty) {
    return false; // Set to false to show empty terms
Updated on March 11, 2024
Was this article helpful?
Still Stuck?
We can help.