Title: oEmbed filter debugging
Last modified: August 19, 2016

---

# oEmbed filter debugging

 *  [thomastraum](https://wordpress.org/support/users/thomastraum/)
 * (@thomastraum)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/oembed-filter-debugging/)
 * Hi all,
 * I am trying to write a little plugin for the new oEmbed functionality in wordpress(
   Its such a great new feature) All I need to do for a start is to print out some
   data in my filter hook for debugging, but all echos and print_r calls dont show
   up anywhere and I just cant see my update. I understand the data only gets updated
   if I edit the post, but I still cant see any debug output. Whats a great way 
   to debug during wordpress plugin development?
 * Here is my example code. I tried to use wp_pear_debug but no luck either. It 
   dumps values with other filters, like ‘the_content’ but not in the oembed one.
 * function jj_customEmbed( $return, $data, $url )
    { global $wp_pear_debug; wp_pear_debug::
   dump( “test” );
 *  return $return;
    }
 * add_filter( ‘oembed_dataparse’, ‘jj_customEmbed’ );

The topic ‘oEmbed filter debugging’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [thomastraum](https://wordpress.org/support/users/thomastraum/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/oembed-filter-debugging/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
