Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • @luigi Jonne Garcia

    Below find a temporary fix. You can add this code to your theme’s functions.php file.

    function patch_ssp_player_url( $link, $episode_id, $file ){
    
      if( preg_match('/\?ref=player/', $link) ){
        $link = str_replace('?ref=player', '', $link);
      }
    
      return $link;
    }
    add_filter('ssp_episode_download_link', 'patch_ssp_player_url', 10, 3);

    Hi Hugh,

    Unfortunately I don’t think that is the case. I’m having the same issue, I already disabled all plugins on a staging site plus I selected a default WP theme and the audio player doesn’t show yet.

    I’ve traced the issue to the following line and file:

    class-ssp-frontend.php line 190

    Looks like WP audio player doesn’t load when the source URL has GET parameters appended to it and removing that block of code fixes the issue.

    I’m not familiar on how the plugin works, this is the very first time I use it for a client, so, I guess that the appended reference may have a purpose ´?ref=player´ and looks like the purpose is to perform a redirect to the correct location of the audio file.

    Do you think that the issue may be a WordPress issue? Will I be safe if I temporary remove that block of code?

    Thanks in advance. Regards!

Viewing 2 replies - 1 through 2 (of 2 total)