Skip to:
Content
Pages
Categories
Search
Top
Bottom

What do I use for editing buddypress group and forum $content ?


  • lostdeviant
    Participant

    @lostdeviant

    I do some str_replace in super simple plugins for changing links, filtering bad words, etc. and normally I do …

    function myfunctionname($content) {

    global $post;

    $content = str_replace(‘replacethis’, ‘withthis’, $content);

    return $content

    }

    add_filter(‘the_content’, ‘myfunctionname’, 100);

    Since there was no effect on the forum or group pages, I’m curious if I need to use a different global and additional filters.

    If someone could point me to the correct FAQ that would be great.

  • The topic ‘What do I use for editing buddypress group and forum $content ?’ is closed to new replies.
Skip to toolbar