• Hello,

    I was just wondering if it’s possible for the default search in Wp to find the “new” content after a filter was added.
    For example before applying the filter below, if you search the content for the word “foo” you will get the result.

    function gepot($content) {
    $ng = ‘foo’;
    $content=str_ireplace($ng,’bar’,$content);
    return $content;
    }
    add_filter(‘the_conten’,’gepot’);

    After applying the filter, if you search for “foo” there will be an result, but if you search for ‘bar’ there will be no results.

    How can I make the search to include the filter modifications?

  • The topic ‘Can the content be searched after the filter was added’ is closed to new replies.