WordPress.org

Make WordPress Core

Opened 2 months ago

Last modified 2 months ago

#47926 new feature request

Disable website field in comment section

Reported by: longman2020 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Comments Keywords:
Focuses: Cc:
PR Number:

Description

Hi,
Please make it possible to hide website field in comment section.
It is not useful at all. Just spammers post fake comments for link building.
I know It can be hide via css code, but not all users know how to do that.
And I noticed that the css code for hiding this field may not be the same for all themes.
Thanks a lot

Change History (7)

#1 @mukesh27
2 months ago

  • Component changed from General to Comments

#2 follow-up: @SergeyBiryukov
2 months ago

Hi @longman2020, welcome to WordPress Trac!

There are several ways to remove the URL field from comment form:

  • Using a code snippet like this in a child theme:
    function wp47926_remove_url_from_comments( $fields ) {
    	unset( $fields['url'] );
    	return $fields;
    }
    add_filter( 'comment_form_default_fields', 'wp47926_remove_url_from_comments' );
    
  • Or using any plugin that offers a similar function:
Last edited 2 months ago by SergeyBiryukov (previous) (diff)

#3 in reply to: ↑ 2 @longman2020
2 months ago

Replying to SergeyBiryukov:

Hi @longman2020, welcome to WordPress Trac!

There are several ways to remove the URL field from comment form:

  • Using a code snipped like this in a child theme:
    function wp47926_remove_url_from_comments( $fields ) {
    	unset( $fields['url'] );
    	return $fields;
    }
    add_filter( 'comment_form_default_fields', 'wp47926_remove_url_from_comments' );
    
  • Or using any plugin that offers a similar function:

Hi,
Thank you
But most of these kind of plugins are not compatible with every theme.

And everyone is not able to code.

The feature I requested is fine and easy for even novice users.

Last edited 2 months ago by longman2020 (previous) (diff)

#4 @SergeyBiryukov
2 months ago

If the theme does not use comment_form(), then a core option would not work for it either.

If it does, then a plugin should work.

There are other, more effective ways to fight spam, like the Akismet plugin.

Adding a new option here would go against the Decisions, not Options philosophy of WordPress, so this seems like plugin territory to me. That said, I'm keeping the ticket open for now, let's wait for more opinions.

#5 @longman2020
2 months ago

If the theme does not use comment_form(), I think that's the theme problem not wordpress core.

Yes that's true and I know that we can fight spams with many ways, but what I meant was real users who just write fake comments to fill the website field for building links, not robots.
Akismet and other spam fighters block robots not real users.

Fake comments reduces the quality of articles and all the website.
Also most of the links are low quality websites with low domain authority, which is even bad for SEO.

If it will be eliminated, the user who wants to write a fake comment in order to get links, will leave the site, when he/she sees that there is no website field.

#6 @longman2020
2 months ago

When it is implemented into the core, the developers will have to adapt their themes with the new future.

#7 @longman2020
2 months ago

Here that we are talking about this topic, we are all experienced users and it's very easy for us to remove it.
But please think of amateur ones and the fake comments that are posted just for getting links.

For example someone writes an article. then these are most of the comments that she/he gets:

Thank you for your great post.
Excellent post.
Great job.

Just to get a free backlink.

Although I myself use a css code to remove it and have no problem anymore, but these kind of comments are really annoying and we should fight with it and let everyone remove this field easily to fight spam if he/she wants.

Note: See TracTickets for help on using tickets.