how to disable link in comments?
-
how to disable link in comments?
this code in function.php of my site not workingfunction author_link(){ global $comment; $comment_ID = $comment->user_id; $author = get_comment_author( $comment_ID ); $url = get_comment_author_url( $comment_ID ); if ( empty( $url ) || 'http://' == $url ) $return = $author; else $return = "$author"; return $return; } add_filter('get_comment_author_link', 'author_link');and this code in comments.php not working
add_filter('comment_form_default_fields', 'mw_unset_url_field'); function mw_unset_url_field($fields){ if(isset($fields['url'])) unset($fields['url']); return $fields;i clear cache and test again but not working this codes
please help me to disable link in comments Without plugin
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘how to disable link in comments?’ is closed to new replies.
