• 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.