How to Remove Post Author Website Url Link in Comments
I’m fine with other users leave their website url in comments but i would like to remove my own (Post Author) website url in comments. One of the easiest way would be go to dashboard->edit profile and remove my own website url but that’s not what i want. Continue doing some search on Google, i found a WordPress Plugin that can solved this – Disable Author and Comments Link but it does not meet my requirement since i’m still prefer commenters to leave their website url if they wanted to.
In this article, i will teach you How to Remove Post Author Website Url in Comments without WordPress Plugin, just using the WordPress core add_filter().
You just need to add this PHP Code Snippet into your functions.php
function dez_remove_post_author_weburl($return) { global $comment, $post; if( !is_admin() ): //only run outside dashboard if ( $comment->user_id == $post->post_author ) { $author = get_comment_author( get_comment_ID() ); $return = $author; //return post author display name only return $return; } else { return $return; //return default } endif; } add_filter( 'get_comment_author_link', 'dez_remove_post_author_weburl');
That’s it, i used is_admin() check to make sure the function run outside dashboard only since we still need all the default core link when editing the comments.
Hope you found this WordPress tips and tutorial useful.

That’s a nice and working post. I was searching for this post but now I am done this job with a plugin. But now I think its time to change because plugin slows down the website if I used too many plugins. That’s why to do short stuff like this I need no plugin. Thanks again for this artile. Hop you ma give me suggestions about my education blog //onchol.com how may I improve my site page speed?
Oh thank god this actually works.
ThankYou it worked…
finally your technique worked to me..
i need this wordpress plugin, please send thos in mail.