Title: Non-OEmbed code not working
Last modified: August 20, 2016

---

# Non-OEmbed code not working

 *  [Jon Breitenbucher](https://wordpress.org/support/users/kahless/)
 * (@kahless)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/non-oembed-code-not-working/)
 * I have copied the code below from a working embed plugin that I wrote and changed
   the regex to what this service requires and changed the embed to match what the
   service generates. However the plugin acts like the post content is not being
   filtered at all. I verified that the regex is matching what I want it to match
   using a regex checker service. I have tried simplifying the regex and embed to
   something like #dog/(.+)# and hello %1$s and it doesn’t replace dog/abd with 
   hello abd. I’m stumped.
 *     ```
       wp_embed_register_handler( 'woosterembed', '#rtmp://adobeflash\.wooster\.edu/vod/(.+)#', 'wp_embed_handler_woosterembed' );
   
       function wp_embed_handler_woosterembed( $matches, $attr, $url, $rawattr ) {
   
       	$embed = sprintf(
       			'<object id="flowplayer" width="' . esc_attr($width) . '" height="' . esc_attr($height) . '" data="http://webapps.wooster.edu/player/swf/flowplayer.swf" type="application/x-shockwave-flash"><param name="movie" value="http://webapps.wooster.edu/player/swf/flowplayer.swf" /><param name="allowfullscreen" value="true" /><param name="flashvars" value=\'config={"key":"#$28d4f4f3f205e518e4a","clip":{"provider":"rtmp","live":true,"url":"mp4:%1$s","autoBuffering":true,"autoPlay":false},"plugins":{"rtmp":{"url":"flowplayer.rtmp.swf","netConnectionUrl":"rtmp://adobeflash.wooster.edu/vod"}}}\' /></object>',
       			esc_attr($matches[1])
       			);
   
       	return apply_filters( 'embed_woosterembed', $embed, $matches, $attr, $url, $rawattr );
       }
       ```
   

The topic ‘Non-OEmbed code not working’ is closed to new replies.

## Tags

 * [embed](https://wordpress.org/support/topic-tag/embed/)
 * [oEmbed](https://wordpress.org/support/topic-tag/oembed/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jon Breitenbucher](https://wordpress.org/support/users/kahless/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/non-oembed-code-not-working/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
