• Hi,

    Is there a filter hook that gets just the raw post content from the database.

    At the moment I can only see ‘the_content’ but this returns with the embed code for any videos too. I just need the raw content.

    Has anyone got any ideas how this can be done.

    Below is my code, if I was passing the raw post content then my ac_rss_video_thumb() function would work as it dynamically looks for pure you tube and vimeo links. Not formatted embedded links. If there is no filter hook that just returns raw post data then ill have to go back to the drawing board.

    But surely we can hook into just the raw post data somehow?

    function ac_add_rss_video_thumb($post_content) {
    if (is_feed()) {
         $post_content .= ac_rss_video_thumb($post_content);
    }
         return $post_content;
    }
    
    add_filter('the_content','ac_add_rss_video_thumb');
  • The topic ‘RSS Filter Hooks? Get raw post data without wordpress video embed code?’ is closed to new replies.