Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

User:DavePar/Plugin API/comment url

Description

Used to change the appearance of the comment author's URL when comment_author_url() is called from a theme.

Prototype

 comment_url_filter($content) 

Examples

Will prepend all URLs with the Google redirector, without modifying the URL as stored in the database:

add_filter('comment_url', array('foo_bar', 'comment_url_filter'));

class foo_bar {
    function comment_url_filter($content) {
        return "http://www.google.com/url?sa=D&q=$content";
    }
}

Parameters

content
The comment author's URL text.

Related

See comment_author_url().