Change the address of the music player if not available

$mp3Linkger = wp_get_attachment_url($mp3_file_id);

$mp3Link = wp_get_attachment_url($mp3_file_id);
$mp3Link = str_replace( 'example.COM', 'static.example.COM', $mp3Link );

    $playerTag = '';

In the above code

$playerTag   loads the link
$mp3Linkger  Is broadcast

I want to load $mp3Link if $mp3Linkger was not available

Not available like Down Server or 404 error and …

sa eu 1 month 0 Answers 2 views 0

Leave an answer