2012-11-12 176 views

回答

1

你怎麼樣試試這個

function force_comment_author_url($comment) 
{ 
    // does the comment have a valid author URL? 
    $no_url = !$comment->comment_author_url || $comment->comment_author_url == 'http://'; 


    $comment->comment_author_url = get_author_posts_url($comment->user_id); 

    return $comment; 
} 
add_filter('get_comment', 'force_comment_author_url'); 

get_author_posts_url文檔