Skip to content

Instantly share code, notes, and snippets.

@bwhli
Created March 16, 2016 02:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bwhli/a6b393fe61bcead03129 to your computer and use it in GitHub Desktop.
MEJS Visibility Workaround
add_filter( 'wp_audio_shortcode', 'audio_short_fix', 10, 5 );
function audio_short_fix( $html, $atts, $audio, $post_id, $library )
{
$html = str_replace ( 'visibility: hidden;' ,'' , $html );
return $html;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment