SHARE
TWEET

r-a-y

a guest Jul 23rd, 2010 143 Never
  1. function my_oembed_wmode( $embed ) {
  2.         if ( strpos( $embed, '<param' ) !== false ) {
  3.                 $embed = str_replace( '<embed', '<embed wmode="transparent" ', $embed );
  4.                 $embed = preg_replace( '/param>/', 'param><param name="wmode" value="transparent" />', $embed, 1);
  5.         }
  6.        
  7.         return $embed;
  8. }
  9. add_filter( 'embed_oembed_html', 'my_oembed_wmode', 1 );
RAW Paste Data
Top