embed_oembed_html filter doesn't work
-
I have a fresh WordPress install and am using Twenty Thirteen. I have added the following to the functions file
add_filter( 'embed_oembed_html', 'tdd_oembed_filter', 10, 4 ) ; function tdd_oembed_filter($html, $url, $attr, $post_ID) { $return = '<figure class="video-container">'.$html.'</figure>'; return $return; }
but it’s not working. My YouTube videos aren’t surrounded by <figure class=”video-container”></figure>. I’ve tried various variations of the filter and function code I’ve found through Google search and none of them work for me.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘embed_oembed_html filter doesn't work’ is closed to new replies.