WordPress.org

Codex

User:DavePar/Plugin API/comment url

Contents

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().