• Hmm, what’s the difference? I’m thinking I should go through these filters and remove anything I don’t need, and keep the stuff I want filtered.

    I figure these filters are run a bazillion times per day on my site, could cost me a lot of money to over-filter.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Have you looked at the filter reference? Some are documented better than others but it should give you an idea of what they do.

    Thread Starter PJ Brunet

    (@knowingart_com)

    Yes, found that. But tells me nothing specific. Where in the source code can I can find exactly what these filters do?

    For me, get_comment_text shows no text at all, filters everything? I’m using comment_text() now and that seems to work better than $comment->comment_content. It adds “a href” to URLs, but I’m not sure what else it does yet.

    Well, comment_text() is good enough for now.

    comment_text
    applied to the comment text before displaying on the screen by the comment_text function, and in the admin menus.

    get_comment_text
    applied to the comment text of the current comment in the get_comment_text function, which is also called by the comment_text function.

    You can find the default filters in wp-includes/default-filters.php but that tells you nothing about what various plugins and themes add.

    I’m unable to get a comment by an id using
    comment_text($id);

    anybody know the best way to do this?

    Please post a new topic.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘filters get_comment_text vs. comment_text’ is closed to new replies.